我正在尝试使用python包管理器pip来安装包,它是来自互联网的依赖项.但是我在我的大学里代理了一个代理,并且已经设置了http_proxy环境变量.但是当我尝试安装这样的包时:
pip install TwitterApi
Run Code Online (Sandbox Code Playgroud)
我在日志文件中收到此错误:
Getting page http://pypi.python.org/simple/TwitterApi
Could not fetch URL http://pypi.python.org/simple/TwitterApi: <urlopen error [Errno 111] Connection refused>
Will skip URL http://pypi.python.org/simple/TwitterApi when looking for download links for TwitterApi
Getting page http://pypi.python.org/simple/
Could not fetch URL http://pypi.python.org/simple/: <urlopen error [Errno 111] Connection refused>
Run Code Online (Sandbox Code Playgroud)
我甚至试着像这样明确地设置我的代理变量:
pip install --proxy http://user:password@proxyserver:port TwitterApi
Run Code Online (Sandbox Code Playgroud)
但我仍然得到同样的错误.如何让pip在代理服务器后面工作.
pip install pycrypto 使用python3.5.2可以正常工作,但是由于python3.6而失败并出现以下错误:
inttypes.h(26):错误C2061:语法错误:标识符'intmax_t'