尝试通过下面的pip进行安装
sudo pip install --verbose -U --allow-unverified --no-index --find-links=/tmp/chef-cache/patroni patroni[zookeeper]==1.4.4
我看到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
设置无法访问外部IP。有什么方法可以阻止PIP尝试连接到
pypi.python.org
?
注意-安装过程正常。但是它在试图连接到
PyPi.Python .Org
然后超时,从而减慢安装速度。
-
PIP版本:7.1.2
-
python版本:2.7.6
-
操作系统:Ubuntu 14.04