简体   繁体   中英

pip install a package from a private repo but dependencies from PyPi behind a proxy

I would like to install a package hosted on a private repo so I'm doing:

pip install myApp -i https://repo.my-organization.net/pypi/myfeed/simple

It is working well until some requirements are needed. So there is an attempt to get them from PyPi but there is then an error because PyPi should be reached through a Proxy. Then, I'm doing:

export http_proxy='http://myproxy:0000'

and same for https, but then, this is the private repo that is no more reachable... :-(

Is there a way to specify/configure pip in a way it is using the proxy for PyPi repo but not for the private one?

tx

使用no_proxy环境变量(逗号分隔的主机名列表,不应通过任何代理)来省略内部主机,例如my-organization

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