11
votes

Comment utiliser easy_install derrière un proxy http sous Windows?

Lorsque j'utilise la commande suivante:

easy_install Spotter code> p>

Pour installer le package code> code>, j'ai eu le message d'erreur suivant P >

Searching for spotter
Reading http://pypi.python.org/simple/spotter/
Download error on http://pypi.python.org/simple/spotter/: [Errno 11001] getaddrinfo      failed -- Some packages may not be found!
Reading http://pypi.python.org/simple/spotter/
Download error on http://pypi.python.org/simple/spotter/: [Errno 11001] getaddrinfo failed -- Some packages may not be found!
Couldn't find index page for 'spotter' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error on http://pypi.python.org/simple/: [Errno 11001] getaddrinfo failed -- Some packages may not be found!
No local packages or download links found for spotter
error: Could not find suitable distribution for Requirement.parse('spotter')


1 commentaires

Réglage http_proxy fonctionne pour moi. Qu'est-ce que tu fais exactement?


3 Réponses :


15
votes

Avez-vous essayé ce qui suit: xxx

et ensuite xxx

J'ai eu un problème similaire au vôtre (je suis derrière une Combinaison de proxy très restrictive de pare-feu +) et l'ensemble de commandes et de combinaisons ci-dessus a fonctionné pour moi (dans un environnement GNU / Linux, en particulier Ubuntu).


1 commentaires

Cela a fonctionné pour moi. Il manquait le -e sur pseudocode>.



4
votes

Vous devez mettre votre configuration proxy dans Internet Explorer et redémarrer votre terminal.

Configuration proxy dans Internet Explorer


0 commentaires

4
votes

de l'invite de commande Windows, définissez d'abord les deux variables d'environnement:

easy_install spotter


0 commentaires