我对python有点陌生,但我需要在linux机器上安装一个库,使用python 2.7。
挑战是,我在防火墙后面,没有代理来执行实际的pip install confluent-kafka-python
因此,我从github获得了合流-Kafka-python.zip,这样我就可以脱机安装并执行以下操作:
sudo pip install confluent-kafka-python-master.zip但我得到了以下错误:
Collecting futures (from confluent-kafka==0.11.6)
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x1846e90>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/futures/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x1846390>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/futures/
....要脱机安装这个库,我可以做什么?
提前感谢
发布于 2018-10-30 14:48:52
您必须检查您的包的依赖性,在本地下载它们(就像您在confluent中所做的那样)和使用“--无索引”选项安装它们。
您也可能想要有关安装本地软件包的更多信息,请查看此页面。。
https://stackoverflow.com/questions/53066051
复制相似问题