You should consider upgrading via the ‘/opt/python3/bin/python3.8 -m pip install --upgrade pip‘ comm

文章讲述了在使用pip安装virtualenv时遇到的连接问题,提示由于网络或服务未知导致的NewConnectionError。解决方法是通过指定的Python路径执行升级pip的命令。
摘要由CSDN通过智能技术生成

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7870e9e370>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/virtualenv/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7870e9e160>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/virtualenv/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7870e9e910>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/virtualenv/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7870e9ea60>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/virtualenv/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7870e9ebb0>: Failed to establish a new connection: [Errno -2] 未知的名称或服务')': /simple/virtualenv/
ERROR: Could not find a version that satisfies the requirement virtualenv (from versions: none)
ERROR: No matching distribution found for virtualenv
WARNING: You are using pip version 20.1.1; however, version 23.3.2 is available.
You should consider upgrading via the '/opt/python3/bin/python3.8 -m pip install --upgrade pip' command.

解决方法/opt/python3/bin/python3.8这是python的安装路径

/opt/python3/bin/python3.8 -m pip install --upgrade pip

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值