高数渣仔 2022-01-07 14:00 采纳率: 25%
浏览 100
已结题

刚装了Python3.8,用pip装不了包怎么办,刚开始学Python,报错如下

D:\python\Scripts>pip install ipython
Collecting ipython
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001740F9A2490>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /packages/8f/b4/1913fff4fd4ec3c77dfbe4611d1a076be23c42fa725057fcd1651a553ac4/ipython-7.31.0-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001740F9A2700>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /packages/8f/b4/1913fff4fd4ec3c77dfbe4611d1a076be23c42fa725057fcd1651a553ac4/ipython-7.31.0-py3-none-any.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001740F91F880>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /packages/8f/b4/1913fff4fd4ec3c77dfbe4611d1a076be23c42fa725057fcd1651a553ac4/ipython-7.31.0-py3-none-any.whl
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001740F91FAF0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /packages/8f/b4/1913fff4fd4ec3c77dfbe4611d1a076be23c42fa725057fcd1651a553ac4/ipython-7.31.0-py3-none-any.whl
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001740F91F970>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /packages/8f/b4/1913fff4fd4ec3c77dfbe4611d1a076be23c42fa725057fcd1651a553ac4/ipython-7.31.0-py3-none-any.whl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/8f/b4/1913fff4fd4ec3c77dfbe4611d1a076be23c42fa725057fcd1651a553ac4/ipython-7.31.0-py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001740F9A2910>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))

WARNING: You are using pip version 21.1.1; however, version 21.3.1 is available.
You should consider upgrading via the 'd:\python\python.exe -m pip install --upgrade pip' command.

  • 写回答

1条回答 默认 最新

  • 神仙别闹 2022-01-07 14:04
    关注
    pip install torchtext -i https://pypi.douban.com/simple/
    

    换个源试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 1月15日
  • 已采纳回答 1月7日
  • 创建了问题 1月7日

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么