相关疑难解决方法(0)

如何让pip在代理服务器后面工作

我正在尝试使用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在代理服务器后面工作.

python proxy pip

63
推荐指数
6
解决办法
21万
查看次数

Microsoft Windows Python-3.6 PyCrypto安装错误

pip install pycrypto 使用python3.5.2可以正常工作,但是由于python3.6而失败并出现以下错误:

inttypes.h(26):错误C2061:语法错误:标识符'intmax_t'

windows visual-studio pycrypto python-3.6

34
推荐指数
5
解决办法
3万
查看次数

标签 统计

pip ×1

proxy ×1

pycrypto ×1

python ×1

python-3.6 ×1

visual-studio ×1

windows ×1