简体   繁体   English

从本地文件夹进行安装时,PIP防止连接到pypi.python.org

[英]PIP Prevent connection to pypi.python.org while doing installation from local folder

On trying to do a install via PIP like below 尝试通过如下所示的PIP进行安装

sudo pip install --verbose -U --allow-unverified --no-index --find-links=/tmp/chef-cache/patroni patroni[zookeeper]==1.4.4

I am seeing pip is trying to connect to pypi.python.org 我看到pip试图连接到pypi.python.org

Getting page https://pypi.python.org/simple/patroni/
Starting new HTTPS connection (1): pypi.python.org
Incremented Retry for (url='/simple/patroni/'): Retry(total=4, connect=None, read=None, redirect=None)
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(99, 'Cannot assign requested address'))': /simple/patroni/
Starting new HTTPS connection (2): pypi.python.org
Incremented Retry for (url='/simple/patroni/'): Retry(total=3, connect=None, read=None, redirect=None)
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(99, 'Cannot assign requested address'))': /simple/patroni/
Starting new HTTPS connection (3): pypi.python.org

The set-up does not have access to outside IP. 该设置无法访问外部IP。 Is there a way I can prevent pip from trying to connect to pypi.python.org ? 有没有一种方法可以防止pip尝试连接到pypi.python.org

NOTE - The installation is happening fine. 注意-安装进行得很好。 But it is taking more time as it is trying to connect to pypi.python.org and then getting timed out, thereby slowing the installation. 但是,由于要尝试连接到pypi.python.org然后超时,因此花费了更多时间,从而减慢了安装速度。

  • pip version: 7.1.2 pip版本:7.1.2
  • Python version: 2.7.6 Python版本:2.7.6
  • OS: Ubuntu 14.04 操作系统:Ubuntu 14.04

This looks like an issue with PIP 7.1.2. 这看起来像是PIP 7.1.2的问题。 The issue is not observed in the latest PIP 18.0. 在最新的PIP 18.0中未观察到此问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 配置pip以从pypi.python.org获取丢失的软件包 - configure pip to get missing package from pypi.python.org 与pypi.python.org的连接超时 - Connection to pypi.python.org timed out pip 连接失败:无法获取索引基 URL http://pypi.python.org/simple/ - pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/ curl https://pypi.python.org/simple/pip不返回任何内容 - curl https://pypi.python.org/simple/pip returns nothing 当pip.conf指定其他位置时,为什么pip试图到达pypi.python.org? - Why is pip trying to reach pypi.python.org when pip.conf specifies elsewhere? 如何解决 ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443) with pip? - How to solve ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443) with pip? Python pip错误:“无法获取索引基URL https://pypi.python.org/simple/” - Python pip error: “Cannot fetch index base URL https://pypi.python.org/simple/” 我无法升级pip:无法获取URL https://pypi.python.org/simple/pip/:存在一个确认ssl证书的问题 - I can't upgrade pip: Could not fetch URL https://pypi.python.org/simple/pip/: There was a prόblem confirming the ssl certificate 为什么pypi.python.org/simple上有一些软件包,但是没有页面? - Why are some packages on pypi.python.org/simple, but have no page? 无法安装分发:pypi.python.org 拒绝 http - Cannot install distribute: pypi.python.org rejecting http
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM