为了账号安全,请及时绑定邮箱和手机立即绑定

使用pip安装本地包的问题

使用pip安装本地包的问题

子衿沉夜 2021-07-26 13:41:01
我对 python 有点陌生,但我需要在 linux 机器上安装一个库,我使用的是 python 2.7。挑战是我在防火墙后面并且没有代理来做一个实际的 pip install confluent-kafka-python所以我从 github 获得了 confluent-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/      ....我该怎么做才能离线安装这个库?
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 241 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号