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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 11,195评论 0 23
  • 就只是,睡不着吧。 闭上眼想到的是高中有时候会一个人起很早,推着车,不骑,一个人慢吞吞地沿着路边走...
    大顺Lurzy阅读 297评论 0 0
  • 1.概述:JSON (JavaScript Object Notation)是一种轻量级的数据交换格式基于文本格式...
    LeaderBiao阅读 1,278评论 0 2
  • 什么叫视觉化图形?可能会联想到思维导图?画画?海报? 实际上就是用画面感的方式去记录,做笔记,做构想。...
    心羽暖姐姐阅读 802评论 5 2
  • 月色很美。 在遇见属于他的月光之前,生活于佩德罗,只是一座牢狱。他置身其中,编织稻草以打发时间和忘却自我。 然后某...
    想不出orz阅读 1,479评论 0 0

友情链接更多精彩内容