pythonpysocks

No module named 'socks'


    import requests, socket, socks
ModuleNotFoundError: No module named 'socks'

I have tried pip install socks, and followed instructions of other stackoverflow posts but none of them worked. I'm working on pycharm right now and I have also installed socks and socket on there, in fact, it does show I have installed it. And yes, I do have it on the right interpreter.

How can I solve this?


Solution

  • I think you mean to install PySocks, so do pip install PySocks. pypi docs for PySocks

    pip install socks installs something different. pypi docs for socks