gpt4 book ai didi

Python-无法在 Windows 上安装 pip-找不到与 pip 匹配的发行版

转载 作者:可可西里 更新时间:2023-11-01 10:42:20 26 4
gpt4 key购买 nike

我正在尝试在 Windows 8 上安装 pip 库。当前 python 版本 - 2.7.3。我从 https://pip.pypa.io/en/stable/installing/ 下载了 get-pip.py

当我执行以下命令时在命令提示符下(以管理员身份)Python get-pip.py,出现以下错误。我在公司网络上运行它。这个命令需要我提供 ip 地址吗?我尝试寻找解决方案,但没有得到满意的答案。有解决办法吗?如果没有,还有其他选择吗?请建议

C:\windows\system32>cd C:\Python27

C:\Python27>python get-pip.py
Collecting pip
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03654450>: Failed to establish a new c
onnection: [Errno 10061] No connection could be made because the target machine
actively refused it',)': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03654490>: Failed to establish a new c
onnection: [Errno 10061] No connection could be made because the target machine
actively refused it',)': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03654410>: Failed to establish a new c
onnection: [Errno 10061] No connection could be made because the target machine
actively refused it',)': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03654150>: Failed to establish a new c
onnection: [Errno 10061] No connection could be made because the target machine
actively refused it',)': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x03654550>: Failed to establish a new c
onnection: [Errno 10061] No connection could be made because the target machine
actively refused it',)': /simple/pip/
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip

C:\Python27>

最佳答案

有 window msi installers collection一些 Python 包适用于所有 Python 版本,包括 32 位和 64 位。你需要

  1. 安装设置工具
  2. 安装pip

之后我在 C:\Python27\Scripts\pip.exe 找到了 pip。现在你可以将它添加到你的路径中

关于Python-无法在 Windows 上安装 pip-找不到与 pip 匹配的发行版,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45960763/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com