where are cached python packages stored in Ubuntu?











up vote
0
down vote

favorite












I thought to post this question in Stackoverflow, but I decided to post it here because it probably depends on the OS.

When I install a python package using pip, at the first time it is downloaded from pypi:



pip install numpy
Collecting numpy
Downloading https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 792kB/s
Installing collected packages: numpy
Successfully installed numpy-1.15.4


When I uninstall it and reinstall it again, the package is not downloaded. Instead, a cached version is used to install it:



pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.15.4


Sometimes, the installation get corrupted, or problems occur during the installation. So I need to reinstall the same package again. but since there is a cached version, the re-installation will use the same corrupted version. So I need to delete that cached version in order to do a clean installation.

for that reason, my question is: where are cached python packages stored in Ubuntu?










share|improve this question




















  • 2




    You should have asked on Stack Overflow: stackoverflow.com/questions/34578168/where-is-pip-cache-folder
    – muru
    Nov 28 at 15:56






  • 1




    when you're installed a package python with pip using python2.7, you can check it on /usr/local/lib/python2.7/dist-packages/* path
    – abu-ahmed al-khatiri
    Nov 28 at 15:57










  • @muru thank you. I will delete my question then. Or shall I just close it?
    – singrium
    Nov 28 at 15:58






  • 1




    I suggest you just write the answer yourself here. If you want to quote something from another post, just use appropriate attribution and go ahead. It is on topic here - just an overlap area :)
    – Zanna
    Nov 28 at 17:10

















up vote
0
down vote

favorite












I thought to post this question in Stackoverflow, but I decided to post it here because it probably depends on the OS.

When I install a python package using pip, at the first time it is downloaded from pypi:



pip install numpy
Collecting numpy
Downloading https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 792kB/s
Installing collected packages: numpy
Successfully installed numpy-1.15.4


When I uninstall it and reinstall it again, the package is not downloaded. Instead, a cached version is used to install it:



pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.15.4


Sometimes, the installation get corrupted, or problems occur during the installation. So I need to reinstall the same package again. but since there is a cached version, the re-installation will use the same corrupted version. So I need to delete that cached version in order to do a clean installation.

for that reason, my question is: where are cached python packages stored in Ubuntu?










share|improve this question




















  • 2




    You should have asked on Stack Overflow: stackoverflow.com/questions/34578168/where-is-pip-cache-folder
    – muru
    Nov 28 at 15:56






  • 1




    when you're installed a package python with pip using python2.7, you can check it on /usr/local/lib/python2.7/dist-packages/* path
    – abu-ahmed al-khatiri
    Nov 28 at 15:57










  • @muru thank you. I will delete my question then. Or shall I just close it?
    – singrium
    Nov 28 at 15:58






  • 1




    I suggest you just write the answer yourself here. If you want to quote something from another post, just use appropriate attribution and go ahead. It is on topic here - just an overlap area :)
    – Zanna
    Nov 28 at 17:10















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I thought to post this question in Stackoverflow, but I decided to post it here because it probably depends on the OS.

When I install a python package using pip, at the first time it is downloaded from pypi:



pip install numpy
Collecting numpy
Downloading https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 792kB/s
Installing collected packages: numpy
Successfully installed numpy-1.15.4


When I uninstall it and reinstall it again, the package is not downloaded. Instead, a cached version is used to install it:



pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.15.4


Sometimes, the installation get corrupted, or problems occur during the installation. So I need to reinstall the same package again. but since there is a cached version, the re-installation will use the same corrupted version. So I need to delete that cached version in order to do a clean installation.

for that reason, my question is: where are cached python packages stored in Ubuntu?










share|improve this question















I thought to post this question in Stackoverflow, but I decided to post it here because it probably depends on the OS.

When I install a python package using pip, at the first time it is downloaded from pypi:



pip install numpy
Collecting numpy
Downloading https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 792kB/s
Installing collected packages: numpy
Successfully installed numpy-1.15.4


When I uninstall it and reinstall it again, the package is not downloaded. Instead, a cached version is used to install it:



pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.15.4


Sometimes, the installation get corrupted, or problems occur during the installation. So I need to reinstall the same package again. but since there is a cached version, the re-installation will use the same corrupted version. So I need to delete that cached version in order to do a clean installation.

for that reason, my question is: where are cached python packages stored in Ubuntu?







18.04 python cache






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 28 at 15:49

























asked Nov 28 at 15:40









singrium

929319




929319








  • 2




    You should have asked on Stack Overflow: stackoverflow.com/questions/34578168/where-is-pip-cache-folder
    – muru
    Nov 28 at 15:56






  • 1




    when you're installed a package python with pip using python2.7, you can check it on /usr/local/lib/python2.7/dist-packages/* path
    – abu-ahmed al-khatiri
    Nov 28 at 15:57










  • @muru thank you. I will delete my question then. Or shall I just close it?
    – singrium
    Nov 28 at 15:58






  • 1




    I suggest you just write the answer yourself here. If you want to quote something from another post, just use appropriate attribution and go ahead. It is on topic here - just an overlap area :)
    – Zanna
    Nov 28 at 17:10
















  • 2




    You should have asked on Stack Overflow: stackoverflow.com/questions/34578168/where-is-pip-cache-folder
    – muru
    Nov 28 at 15:56






  • 1




    when you're installed a package python with pip using python2.7, you can check it on /usr/local/lib/python2.7/dist-packages/* path
    – abu-ahmed al-khatiri
    Nov 28 at 15:57










  • @muru thank you. I will delete my question then. Or shall I just close it?
    – singrium
    Nov 28 at 15:58






  • 1




    I suggest you just write the answer yourself here. If you want to quote something from another post, just use appropriate attribution and go ahead. It is on topic here - just an overlap area :)
    – Zanna
    Nov 28 at 17:10










2




2




You should have asked on Stack Overflow: stackoverflow.com/questions/34578168/where-is-pip-cache-folder
– muru
Nov 28 at 15:56




You should have asked on Stack Overflow: stackoverflow.com/questions/34578168/where-is-pip-cache-folder
– muru
Nov 28 at 15:56




1




1




when you're installed a package python with pip using python2.7, you can check it on /usr/local/lib/python2.7/dist-packages/* path
– abu-ahmed al-khatiri
Nov 28 at 15:57




when you're installed a package python with pip using python2.7, you can check it on /usr/local/lib/python2.7/dist-packages/* path
– abu-ahmed al-khatiri
Nov 28 at 15:57












@muru thank you. I will delete my question then. Or shall I just close it?
– singrium
Nov 28 at 15:58




@muru thank you. I will delete my question then. Or shall I just close it?
– singrium
Nov 28 at 15:58




1




1




I suggest you just write the answer yourself here. If you want to quote something from another post, just use appropriate attribution and go ahead. It is on topic here - just an overlap area :)
– Zanna
Nov 28 at 17:10






I suggest you just write the answer yourself here. If you want to quote something from another post, just use appropriate attribution and go ahead. It is on topic here - just an overlap area :)
– Zanna
Nov 28 at 17:10












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Thanks to @muru, I found the answer in Stackoverflow. I quote from it:




The default location for the cache directory depends on the Operating
System:




For Ubuntu, it is located in:




~/.cache/pip and it respects the XDG_CACHE_HOME directory.



WheelCache

Pip will read from the subdirectory wheels within the pip cache
directory and use any packages found there.




More information can be found in this link






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096847%2fwhere-are-cached-python-packages-stored-in-ubuntu%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Thanks to @muru, I found the answer in Stackoverflow. I quote from it:




    The default location for the cache directory depends on the Operating
    System:




    For Ubuntu, it is located in:




    ~/.cache/pip and it respects the XDG_CACHE_HOME directory.



    WheelCache

    Pip will read from the subdirectory wheels within the pip cache
    directory and use any packages found there.




    More information can be found in this link






    share|improve this answer

























      up vote
      0
      down vote













      Thanks to @muru, I found the answer in Stackoverflow. I quote from it:




      The default location for the cache directory depends on the Operating
      System:




      For Ubuntu, it is located in:




      ~/.cache/pip and it respects the XDG_CACHE_HOME directory.



      WheelCache

      Pip will read from the subdirectory wheels within the pip cache
      directory and use any packages found there.




      More information can be found in this link






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Thanks to @muru, I found the answer in Stackoverflow. I quote from it:




        The default location for the cache directory depends on the Operating
        System:




        For Ubuntu, it is located in:




        ~/.cache/pip and it respects the XDG_CACHE_HOME directory.



        WheelCache

        Pip will read from the subdirectory wheels within the pip cache
        directory and use any packages found there.




        More information can be found in this link






        share|improve this answer












        Thanks to @muru, I found the answer in Stackoverflow. I quote from it:




        The default location for the cache directory depends on the Operating
        System:




        For Ubuntu, it is located in:




        ~/.cache/pip and it respects the XDG_CACHE_HOME directory.



        WheelCache

        Pip will read from the subdirectory wheels within the pip cache
        directory and use any packages found there.




        More information can be found in this link







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 29 at 7:54









        singrium

        929319




        929319






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096847%2fwhere-are-cached-python-packages-stored-in-ubuntu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?