Search code examples
pythonpipsocks

pip install error: Missing dependencies for SOCKS support


When I try to use pip install, it keeps throwing this error.

$ pip install django
ERROR: Could not install packages due to an OSError: Missing dependencies for SOCKS support.

I tried installing request[socks], but then I get an error saying that it cannot make out the socks version.

The following is the proxy setting on my system:

$ printenv | grep -i proxy
NO_PROXY=localhost,127.0.0.0/8,::1
http_proxy=http://proxy.iiit.ac.in:8080/
FTP_PROXY=http://proxy.iiit.ac.in:8080/
ftp_proxy=http://proxy.iiit.ac.in:8080/
all_proxy=socks://proxy.iiit.ac.in:8080/
ALL_PROXY=socks://proxy.iiit.ac.in:8080/
https_proxy=http://proxy.iiit.ac.in:8080/
HTTPS_PROXY=http://proxy.iiit.ac.in:8080/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://proxy.iiit.ac.in:8080/

Solution

  • I was also not able to install Django and other stuffs after activating venv than I finally did this [1]

    type: sudo gedit .bashrc #or any text editor if gedit is not there 
    
          add this line at the last of your .bashrc file 
          export all_proxy="https://your_proxy:your_port/"
    

    save the changes it should work. Thanks

    Ref. [1] https://stackoverflow.com/a/39959360/4706745