Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip cache
#1
I see that pip's cache in ~/cache/pip has a wheel and http directory. They take about 3 G which I would like to reclaim. They are in a dreadful numerical obfuscation which I loathe.
I can rescue the wheels and move them to another drive, if ever I should need them. Is there any way I can make anything useful of the http files?

I am assuming that with the latest version I CAN delete the cache with no harm done. Is this still true?

In ots present format iot is personally useless, but i do not know what the system needs, or wants. What was true a few years ago may no longer hold....
Reply
#2
There shouldn't be anything in your cache after an install.
I'm guessing that the author didn't properly clean-up after an install.
Should be OK to delete.
Reply
#3
I've been using :
pip3 install xxx yyy zzz (multiple packages)

It seems to hold its 'wheels' there, which I assume is similar to the CPAN/Build directories. I'm still installing 3.7 (on Buster, and Win7), so they're OK for now, but wehn done I will probably use one of the mirror modules to make a repo of PyPi.

Another question, related to package management:
In Perl there is a hierarchial %PerlPath% with site dirs searched in precedence. For example a site module will never override a system module with the same name. With that in mind I can add entire site dirs with modules from previous versions, and set the version in the script if there is a conflict.
Is there anything like this in python?
Reply
#4
OK I see now that the Debian distro puts its modules in /usr/lib, which is first in the 'python-path' . The Pypi modules are under /usr/local lib.

Which still begs the question as to the nature of the /wheels and /http dirs in ~/.cache/pip

I assume the /wheels is like the CPAN/Buld dirs: disposable. I have no clue, however as to what the /http dir is. It is totally obfuscated, with what appears to be binary files in an unknown format.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Speeding up code using cache Peter 1 512 Jul-29-2023, 04:52 AM
Last Post: bowlofred
  Opinion: how should my scripts cache web download files? stevendaprano 0 703 Dec-17-2022, 12:19 AM
Last Post: stevendaprano
  main libvlc error: stale plugins cache: schascheck 2 7,594 Dec-27-2020, 05:24 PM
Last Post: schascheck
  Clear Cache Path sportcardinal 0 1,580 Jul-05-2020, 05:11 PM
Last Post: sportcardinal
  How to print cache from Decorators with Memoization OlgaM 2 2,016 Jan-29-2020, 05:06 PM
Last Post: OlgaM
  python cache for small integer Uchikago 1 2,456 Jun-27-2019, 05:32 PM
Last Post: ichabod801
  Error in request, cache key a21250450 2 3,060 Apr-02-2019, 11:20 AM
Last Post: a21250450
  Clear cache blackclover 0 2,744 May-09-2018, 12:13 AM
Last Post: blackclover
  Create cache script AgatheYou 1 3,639 Apr-04-2017, 02:15 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020