Python's requests “Missing dependencies for SOCKS support” when using SOCKS5 from Terminal

1 Unset socks proxy, in your case:
unset all_proxy
unset ALL_PROXY
2 Install missing dependencies:
pip install pysocks
3Reset proxy, source .bashrc, and pip install works again with socks proxy.

Another WAY
had the same issue with conda and requests 2.11 (I work in a Ubuntu VM behind a corporate proxy).
This issue helped me. I changed my environment variableall_proxy
(which was originally set to a SOCK proxysocks://....
) to the https version in my .bashrc file :
export all_proxy="https://:/"

你可能感兴趣的:(Python's requests “Missing dependencies for SOCKS support” when using SOCKS5 from Terminal)