简体   繁体   中英

pip install from private repo but requirements from PyPi

I would like to install a package from private repo but when I run this:

pip install myapp -i https://myrepo.net/pypi/myfeed/simple

I got this error

ERROR: Could not find a version that satisfies the requirement myapp (from versions: none)
ERROR: No matching distribution found for myapp

I assume this is because requirements for this package are not in the private repo, so I tried to add extra-index-url

pip install myapp -i https://myrepo.net/pypi/myfeed/simple --extra-index-url https://pypi.python.org/pypi

But I got the exact same error

What am I doing wrong?

It's likely that either myapp was not found on your index at all, or that a compatible distribution of myapp does not exist - for example, it requires a different version of Python than you are attempting to install with.

Running pip with the --verbose flag should tell you why it wasn't able to install myapp :

pip install myapp -i https://myrepo.net/pypi/myfeed/simple  --verbose

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