标签归档:http proxy

让 easy_install 使用代理翻墙安装 Python 模块

关键字:python, easy_install, setuptools, myentunnel, polipo, windows, linux, socks5, http, proxy 因为一些众所周知的原因,我们有些网站无法访问,造成生活和生产的巨大不便。其中对我影响比较大的一个就是安装某些 Python 模块的时候,easy_install 无法访问到网站。在这里分享让 easy_install 使用代理的方法,如果你拥有 socks5 或 http 代理服务器可用,这个方法能够让 easy_install 完美地跨越长城。 http 首先介绍容易实现的 http 方式。得益于 python 模块 urllib 能够透明使用代理的能够,easy_install 使用 http 代理是非常方式的。无论在 windows 还 linux 下,只要设置好 http_proxy 环境变量就可以了。 你可以在 … 继续阅读

发表在 Python | 标签为 | 留下评论