无论是使用PIP还是手动下载并在Pyramid上运行'python setup.py install',我都会遇到同样的错误:访问标准的pypi网站。
如果我在浏览器中访问这些网站一切正常,但如果我运行该命令则不然。错误如下。
我猜大多数使用这些url的软件包都会发生错误,因为我在代理服务器后面,我的代理服务器禁止通过python可执行文件进行Web访问?
如果这是问题,我如何指定pip或仅使用apps setup.py来使用我的代理。
Installed c:\pymon\python34\lib\site-packages\pyramid-1.5.1-py3.4.egg
Processing dependencies for pyramid==1.5.1
Searching for PasteDeploy>=1.5.0
Reading https://pypi.python.org/simple/PasteDeploy/
Download error on https://pypi.python.org/simple/PasteDeploy/: timed out -- Some
packages may not be found!
Couldn't find index page for 'PasteDeploy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: timed out -- Some packages may not be found!
No local packages or download links found for PasteDeploy>=1.5.0
error: Could not find suitable distribution for Requirement.parse('PasteDeploy>=
1.5.0' )
答案 0 :(得分:1)
道歉我应该进一步搜索: Plone: pypi specific download issue behind a proxy server - can't install eggs
我创建了两个环境变量:HTTP_PROXY和HTTPS_PROXY
注意上面关于--proxy参数的注释也可以通过pip工作。