cundi / blog

push issues as a blog
2 stars 0 forks source link

为pip install 使用socks5代理[转载] #14

Open cundi opened 8 years ago

cundi commented 8 years ago

原始链接:http://hehan.net/use-socks5-proxy-for-pip-install.html

Use socks5 proxy for pip install

Issue

pip install doesn't provide the native socks5 proxy support.

Solution

Use a tool named proxychains which chains the connection through proxy.

On Fedora, install via sudo dnf install proxy chains.

To change the default socks5 proxy, modify /etc/proxychains.conf, under [ProxyList] add one line:

socks5 127.0.0.1 1080

How to use:

proxychains pip install requests

Done! Happy pip with socks5 proxy.