In new Ubuntu server, I run the following commands to install pip.
https://pip.pypa.io/en/stable/installing/
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
But python3 can not find the installed modules. Does anybody know how to install pythons modules so that they can work properly?
$ which pip3
/usr/local/bin/pip3
$ pip3 install socks
Requirement already satisfied: socks in /usr/local/lib/python3.8/dist-packages (0)
$ which python3
/usr/bin/python3
$ python3
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import socks
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'socks'