python - Can pip use existing packages rather than downloading again? -


I am working on a new project for which a new virtualwave when I install PIP -r requirements.txt, So this package still downloads again, even though those packages are already present on the virtual project of the previous project.

Is there any way to get the package obtained from the package instead of other VirtualAnv?

This is not the answer to your question, but I think that you want to, download i.e. : You can specify environment directory PIP_DOWNLOAD_CACHE = / path / to / directory / where / download / package / will / ho / cache package will be downloaded to this directory and if they need to be reinstalled then take it from this directory Will go

Found it from: And works fine for me

There is also option down-cache to set up PIP - I think it does the same thing, but The environmental variable is elephant.

Comments