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

后端 未结 14 914
南笙
南笙 2020-12-12 20:36

I\'m trying to interact with an API from my Python 2.7 shell using a package that relies on Python\'s requests. Thing is the remote address is blocked by my network (univers

相关标签:
14条回答
  • 2020-12-12 21:24

    My environment is Ubuntu 16.4 LTS and Python3.5.2 I use pip3 to install libs got the same issue. so I use the command unset ALL_PROXY to solve this problem and it works.

    PS: use printenv | grep -i proxy to show the proxy info.

    0 讨论(0)
  • 2020-12-12 21:25

    I used all the above methods, but only this worked for me:

    set | grep -i all_proxy
    

    it returned:

    ALL_PROXY=socks://127.0.0.1:1080/
    all_proxy=socks://127.0.0.1:1080/
    

    and then, I did this:

    export all_proxy=""
    

    Finally, it didn't appear mistakes again.

    0 讨论(0)
提交回复
热议问题