yor*_*007 10 python proxy easy-install
当我使用命令时:
easy_install spotter
安装spotter包,我收到以下错误信息
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')
Run Code Online (Sandbox Code Playgroud)
这两个环境变量:http_proxy和https_proxy似乎没有工作?
Emr*_*inç 14
您是否尝试过以下方法:
$ export http_proxy=http://username:password@some.proxy.com:portnumber
$ export https_proxy=https://username:password@some.proxy.com:portnumber
Run Code Online (Sandbox Code Playgroud)
然后
$ sudo -E easy_install spotter
Run Code Online (Sandbox Code Playgroud)
我有一个类似于你的问题(我是一个非常严格的防火墙+代理组合),上面的一组命令和组合对我有用(在GNU/Linux环境中,尤其是Ubuntu).