小编rob*_*jpg的帖子

easy_install 不会通过代理连接

我在 VirtualBox 下运行 Ubuntu Server 10.04 64 位,似乎除了easy_install 和 pip之外的所有东西都可以连接到 Internet。我已经设置并导出了 http_proxy 环境变量,并且还在我知道的所有其他位置设置了代理地址。然而,easy_install 总是返回“网络无法访问”:

:~$ echo $http_proxy
http://192.168.1.25:80/

:~$ grep "http_proxy" /etc/bash.bashrc
export http_proxy=http://192.168.1.25:80/

:~$ grep "http_proxy" /etc/wgetrc
http_proxy = http://192.168.1.25:80/

:~$ ping pypi.python.org
PING pypi.python.org (82.94.164.168) 56(84) bytes of data.
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=1 ttl=53 time=114 ms
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=2 ttl=53 time=113 ms
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=3 ttl=53 time=113 ms
64 bytes from pypi.python.org (82.94.164.168): icmp_seq=4 ttl=53 time=113 …
Run Code Online (Sandbox Code Playgroud)

virtualbox python proxy easy-install ubuntu

19
推荐指数
2
解决办法
3万
查看次数

标签 统计

easy-install ×1

proxy ×1

python ×1

ubuntu ×1

virtualbox ×1