Where is pip cache folder? I had error during install and now reinstall packages using cache files
Where is that directory? I want backup them for install in the future. is it possible ?
For example I have this one :
Using cached cssselect-0.9.1.tar.gz
I searched google for this directory but anything I saw, is learn to how install from a folder, I want to find default cache directory.
And another question, these cache files will stay in that directory or will remove soon ??
Because this question ranks, and the accepted answer doesn't quite match the question title:
The location of the cache directory can be changed via the command line option
--cache-dir
.Pythonic and cross-platform way:
Under the hood, it normalizes paths, manages different locations for exotic and ordinary operating systems and platforms, performs Windows registry lookup.
It may worth mentioning, if you have different Python versions installed, 2.x'es and 3.x'es, they all do share the same cache location.
You can backup the associated wheel rather than attempting to perform a backup of the cache folder.
Download the wheel for csselect of version 0.9.1 into
/tmp/wheelhouse
:Install the downloaded wheel: