简体   繁体   中英

Avoid git clone while pip install from a private repo in requirements file

requirements.txt file format:

package1
package2
git+https://github.com/dummy-org/dummy-repo.git@v1.0

I created a zip ( dummy-repo-1.0.zip ) of the private repo package using:

pip download git+https://github.com/dummy-org/dummy-repo.git@v1.0

And I am able to install the package via pip install dummy-repo-1.0.zip

When I try to install all the packages using pip install -r requirements.txt , every time it tries to clone the private repo. I want to skip this step.

Is it possible to avoid this cloning and use offline bundle or already installed package (from pip cache) for private repos?

In my case, it worked when I changed the requirements.txt, and replaced the URL with the path to the. Zip file. But this was a lang time ago, I am not Sure if it still works...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM