pip install时报错InvalidSchema: Missing dependencies for SOCKS support.

今天Anaconda下pip install报错,正当准备使用秘技--重装系统时,被一篇博文抢救下来
http://blog.csdn.net/wxlcs/article/details/65446400

错误内容:

raise InvalidSchema("Missing dependencies for SOCKS support.")
pip._vendor.requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.

解决方法

  1. 首先用conda命令安装pysocks:
    $ conda install -c anaconda pysocks=1.6.6

  2. 再运行
    $ pip install requests[socks]

  3. 查看all_proxy
    $ set | grep -i all_proxy
    显示
    $ALL_PROXY=socks://XX.XX.XX.XX:8080/
    $all_proxy=socks://XX.XX.XX.XX:8080/

  4. 修改all_proxy为“”
    $export all_proxy=""

你可能感兴趣的:(pip install时报错InvalidSchema: Missing dependencies for SOCKS support.)