2017-08-30 1 views
0

J'essaie d'installer la bibliothèque pip sur Windows 8. Version python actuelle - 2.7.3. J'ai téléchargé get-pip.py de https://pip.pypa.io/en/stable/installing/Python- Impossible d'installer pip sur windows-Aucune distribution correspondante trouvée pour pip

Sur invite de commande (en tant qu'administrateur) lorsque j'exécutez la commande suivante Python get-pip.py, je reçois l'erreur suivante. Je cours ceci sur mon réseau d'entreprise. Cette commande s'attend-elle à ce que je fournisse une adresse IP? J'ai essayé de chercher une solution, mais je n'ai pas pu obtenir de réponse satisfaisante. Y a-t-il une solution à ce problème? Sinon, y a-t-il une alternative? S'il vous plaît suggérer

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> 

Répondre

0

Il y a des fenêtres msi installers collection avec certains paquets Python pour toutes les versions de Python, 32 et 64 bits. Vous devez

  1. Installer setuptools
  2. Installer pépin

Après que j'ai trouvé pip C: \ Python27 \ Scripts \ PIP.EXE. Maintenant, vous pouvez l'ajouter à votre chemin

0

Êtes-vous connecté à Internet?
Connectez-vous d'abord à Internet et tapez à nouveau cette commande. Si alors aussi ce problème ne résout pas. Télécharger python lors de l'installation, il est possible d'installer pip. Cochez cette option et pip sera installé dans votre système.

Il sera possible d'ajouter pip dans votre path variable sélectionnez également cela.

Si vous faites face à l'installation pip Envoyer cette link

0

Je pourrais installer avec succès pip après la déconnexion de l'entreprise utilisé une connexion Internet. Il essayait de rejeter en quelque sorte la demande de connexion. Une fois que je me suis connecté au café hotspot local, cela a fonctionné parfaitement. Merci pour votre soutien. Pip est installé sur 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>