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?
OS: Latest version of Ubuntu
When you are developing network application using python, you may find this error: ModuleNotFoundError: No module named ‘socks’. In this tutorial, we will introduce you how to fix this error. Install python library pip install pysocks Then when you import socks library, this error is fixed. Category: Python
The first reason of this error is the name of the module is incorrect, so you have to check out the module name that you had imported. For example, let's try to import os module with double s and see what will happen:
The first reason of this error is the name of the module is incorrect, so you have to check out the module name that you had imported. For example, let's try to import os module with double s and see what will happen: as you can see, we got No module named 'oss'.
1 The name of the module is incorrect 2 The path of the module is incorrect 3 The Library is not installed More ...
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
pip install pysocks
should fix it for you.
Pysocks website
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With