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'
https://stackoverflow.com/questions/65839037/why-modules-installed-by-pip3-can-not-be-used-python3 January 22, 2021 at 11:49AM
没有评论:
发表评论