我正在尝试在Windows 8上安装pip库。当前python版本- 2.7.3。我get-pip.py从https://pip.pypa.io/en/stable/installing/下载了www.example.com
在命令提示符下(以管理员身份),当我执行以下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>
3条答案
按热度按时间7gcisfzg1#
Windows msi installers collection中有一些Python包,适用于所有Python版本,包括32位和64位。
1.安装安装工具
1.安装管路
之后,我在C:\Python27\Scripts\pip.exe中找到了pip。
dgjrabp22#
你上网了吗?
首先连接到互联网,然后再次输入此命令。如果这个问题也没有解决。下载python,同时安装有安装
pip
的选项。检查该选项和pip
将安装在您的系统中。将有选项添加到您的
path variable
选择也pip。如果您要安装
pip
,请参阅此link55ooxyrt3#
我可以成功地安装pip后,从公司使用的互联网连接断开。它试图以某种方式拒绝连接请求。一旦我连接到本地coffeeshops热点,它工作得很好。感谢您的支持。Pip安装在python 2.7.3