Python's requests “Missing depen

2017-10-08  本文已影响0人  sherrysack

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://<proxy>:<port>/"

上一篇 下一篇

猜你喜欢

热点阅读