Search code examples
macosproxypip

How to use pip with socks proxy?


I'm using ssh -D to create a socket proxy and want to know how to use pip(or easy_install) with it? I find this question but that's an http proxy.

Also, please give me a solution works under OS X. (I tried proxifier, it works with pip install, but not sudo pip install)


Solution

  • Use socks proxifier, for example proxychains.

    Command pip will be like proxychains pip install package_name.

    Or use another proxifier.