How to organize 3rd-party libraries for Python?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I am new in Python. I want to install many 3rd-party libraries (I think they are also called packages?) like, for example, "AstroPy". But I am not sure where the new source code will be stored (I mean, the new ".py" text files that will be downloaded and will contain the Python functions of "AstroPy").



I would like to keep track of all the libraries that I will install. Is there any way to do that for Python?



I used to use IDL and when I want to install a library, I am used to simply download all the text files containing the IDL scripts and then store them in a folder like "/IDL/libraries". That way, I could easily see what I had and also easily uninstall them.







share|improve this question




















  • Why not use pip, the package manager for Python? It should already be installed along with recent versions of Python, but if not, you can install it as per pip.pypa.io/en/stable/installing
    – Munir
    Jan 30 at 23:04














up vote
2
down vote

favorite












I am new in Python. I want to install many 3rd-party libraries (I think they are also called packages?) like, for example, "AstroPy". But I am not sure where the new source code will be stored (I mean, the new ".py" text files that will be downloaded and will contain the Python functions of "AstroPy").



I would like to keep track of all the libraries that I will install. Is there any way to do that for Python?



I used to use IDL and when I want to install a library, I am used to simply download all the text files containing the IDL scripts and then store them in a folder like "/IDL/libraries". That way, I could easily see what I had and also easily uninstall them.







share|improve this question




















  • Why not use pip, the package manager for Python? It should already be installed along with recent versions of Python, but if not, you can install it as per pip.pypa.io/en/stable/installing
    – Munir
    Jan 30 at 23:04












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am new in Python. I want to install many 3rd-party libraries (I think they are also called packages?) like, for example, "AstroPy". But I am not sure where the new source code will be stored (I mean, the new ".py" text files that will be downloaded and will contain the Python functions of "AstroPy").



I would like to keep track of all the libraries that I will install. Is there any way to do that for Python?



I used to use IDL and when I want to install a library, I am used to simply download all the text files containing the IDL scripts and then store them in a folder like "/IDL/libraries". That way, I could easily see what I had and also easily uninstall them.







share|improve this question












I am new in Python. I want to install many 3rd-party libraries (I think they are also called packages?) like, for example, "AstroPy". But I am not sure where the new source code will be stored (I mean, the new ".py" text files that will be downloaded and will contain the Python functions of "AstroPy").



I would like to keep track of all the libraries that I will install. Is there any way to do that for Python?



I used to use IDL and when I want to install a library, I am used to simply download all the text files containing the IDL scripts and then store them in a folder like "/IDL/libraries". That way, I could easily see what I had and also easily uninstall them.









share|improve this question











share|improve this question




share|improve this question










asked Jan 30 at 22:01









Stefano

1112




1112











  • Why not use pip, the package manager for Python? It should already be installed along with recent versions of Python, but if not, you can install it as per pip.pypa.io/en/stable/installing
    – Munir
    Jan 30 at 23:04
















  • Why not use pip, the package manager for Python? It should already be installed along with recent versions of Python, but if not, you can install it as per pip.pypa.io/en/stable/installing
    – Munir
    Jan 30 at 23:04















Why not use pip, the package manager for Python? It should already be installed along with recent versions of Python, but if not, you can install it as per pip.pypa.io/en/stable/installing
– Munir
Jan 30 at 23:04




Why not use pip, the package manager for Python? It should already be installed along with recent versions of Python, but if not, you can install it as per pip.pypa.io/en/stable/installing
– Munir
Jan 30 at 23:04










1 Answer
1






active

oldest

votes

















up vote
1
down vote













You can find the location of global site-packages (dist-packages that may have been installed via easy_install or pip, a Python package manager) by running:



python -m site


If the package was installed using pip, you can find the location of a specific package (for example, name) by running:



pip show name


Finally, per-user (local) site-packages can be found by running:



python -m site --user-site


You can find slightly more information about dist-packages versus site-packages on the Debian wiki page for Python.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f420812%2fhow-to-organize-3rd-party-libraries-for-python%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    You can find the location of global site-packages (dist-packages that may have been installed via easy_install or pip, a Python package manager) by running:



    python -m site


    If the package was installed using pip, you can find the location of a specific package (for example, name) by running:



    pip show name


    Finally, per-user (local) site-packages can be found by running:



    python -m site --user-site


    You can find slightly more information about dist-packages versus site-packages on the Debian wiki page for Python.






    share|improve this answer
























      up vote
      1
      down vote













      You can find the location of global site-packages (dist-packages that may have been installed via easy_install or pip, a Python package manager) by running:



      python -m site


      If the package was installed using pip, you can find the location of a specific package (for example, name) by running:



      pip show name


      Finally, per-user (local) site-packages can be found by running:



      python -m site --user-site


      You can find slightly more information about dist-packages versus site-packages on the Debian wiki page for Python.






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        You can find the location of global site-packages (dist-packages that may have been installed via easy_install or pip, a Python package manager) by running:



        python -m site


        If the package was installed using pip, you can find the location of a specific package (for example, name) by running:



        pip show name


        Finally, per-user (local) site-packages can be found by running:



        python -m site --user-site


        You can find slightly more information about dist-packages versus site-packages on the Debian wiki page for Python.






        share|improve this answer












        You can find the location of global site-packages (dist-packages that may have been installed via easy_install or pip, a Python package manager) by running:



        python -m site


        If the package was installed using pip, you can find the location of a specific package (for example, name) by running:



        pip show name


        Finally, per-user (local) site-packages can be found by running:



        python -m site --user-site


        You can find slightly more information about dist-packages versus site-packages on the Debian wiki page for Python.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 30 at 23:33









        aliceinpalth

        760116




        760116






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f420812%2fhow-to-organize-3rd-party-libraries-for-python%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?