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

Python-无法在windows上安装pip未找到与pip匹配的发行版,python,windows,python-2.7,pip,Python,Windows,Python 2.7,Pip,我正在尝试在Windows 8上安装pip库。当前python版本-2.7.3。我从下载了get-pip.py 当我执行以下命令时,在命令提示符下(作为管理员) Python get-pip.py,我得到以下错误。我在我的公司网络上运行这个。此命令是否希望我提供ip地址?我试图寻找解决办法,但没有得到满意的答案。有解决办法吗?如果没有,还有其他办法吗?请建议 C:\windows\system32>cd C:\Python27 C:\Python27>python get-pip.

我正在尝试在Windows 8上安装pip库。当前python版本-2.7.3。我从下载了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>
C:\windows\system32>cd C:\Python27
C:\Python27>python get-pip.py
收集点
connec之后重试(重试(总计=4,连接=None,读取=None,重定向=None))
“NewConnectionError(”)中断的操作:无法建立新的c
连接:[Errno 10061]无法建立连接,因为目标计算机
主动拒绝“,)”:/simple/pip/
connec之后重试(重试(总计=3,连接=None,读取=None,重定向=None))
“NewConnectionError(”)中断的操作:无法建立新的c
连接:[Errno 10061]无法建立连接,因为目标计算机
主动拒绝“,)”:/simple/pip/
connec之后重试(重试(总计=2,连接=None,读取=None,重定向=None))
“NewConnectionError(”)中断的操作:无法建立新的c
连接:[Errno 10061]无法建立连接,因为目标计算机
主动拒绝“,)”:/simple/pip/
connec之后重试(重试(总计=1,连接=None,读取=None,重定向=None))
“NewConnectionError(”)中断的操作:无法建立新的c
连接:[Errno 10061]无法建立连接,因为目标计算机
主动拒绝“,)”:/simple/pip/
connec之后重试(重试(总计=0,连接=None,读取=None,重定向=None))
“NewConnectionError(”)中断的操作:无法建立新的c
连接:[Errno 10061]无法建立连接,因为目标计算机
主动拒绝“,)”:/simple/pip/
找不到满足pip要求的版本(来自版本:)
找不到与pip匹配的分发
C:\Python27>
有些Windows为所有Python版本(32位和64位)提供了一些Python包。你需要

  • 安装安装工具
  • 安装pip

  • 之后,我在C:\Python27\Scripts\pip.exe中找到了pip。现在您可以将其添加到路径中

    您是否已连接到internet
    首先连接到internet,然后再次键入此命令。如果那么这个问题也解决不了。安装时下载,可选择安装
    pip
    。选中该选项,系统中将安装
    pip


    您可以选择将pip添加到
    路径变量中
    也可以选择该变量。


    如果您要安装
    pip
    请参阅此我可以在断开公司使用的internet连接后成功安装pip。它试图以某种方式拒绝连接请求。一旦我连接到当地的咖啡店热点,它工作得非常好。谢谢你的支持。Pip安装在python 2.7.3上

    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.
    
    C:\windows\system32>cd C:\Python27
    
    C:\Python27>python get-pip.py
    Collecting pip
    c:\users\aja67\appdata\local\temp\tmpvssw7v\pip.zip\pip\_vendor\requests\package
    s\urllib3\util\ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, b
    ut the SNI (Subject Name Indication) extension to TLS is not available on this p
    latform. This may cause the server to present an incorrect TLS certificate, whic
    h can cause validation failures. You can upgrade to a newer version of Python to
     solve this. For more information, see https://urllib3.readthedocs.io/en/latest/
    security.html#snimissingwarning.
    c:\users\aja67\appdata\local\temp\tmpvssw7v\pip.zip\pip\_vendor\requests\package
    s\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is
     not available. This prevents urllib3 from configuring SSL appropriately and may
     cause certain SSL connections to fail. You can upgrade to a newer version of Py
    thon to solve this. For more information, see https://urllib3.readthedocs.io/en/
    latest/security.html#insecureplatformwarning.
      Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
        100% |################################| 1.3MB 328kB/s
    Collecting wheel
      Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
        100% |################################| 71kB 597kB/s
    Installing collected packages: pip, wheel
    Successfully installed pip-9.0.1 wheel-0.29.0
    c:\users\aja67\appdata\local\temp\tmpvssw7v\pip.zip\pip\_vendor\requests\package
    s\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is
     not available. This prevents urllib3 from configuring SSL appropriately and may
     cause certain SSL connections to fail. You can upgrade to a newer version of Py
    thon to solve this. For more information, see https://urllib3.readthedocs.io/en/
    latest/security.html#insecureplatformwarning.
    
    C:\Python27>