安装python3.7后没有调用pip
python3.7 -m pip3
/usr/local/bin/python3.7: No module named pip3
python3.7 -m pip
/usr/local/bin/python3.7: No module named pip
我下载点子
sudo wget https://bootstrap.pypa.io/get-pip.py
尝试安装
python3.7 get-pip.py
我收到一个错误
python3.7 get-pip.py
Traceback (most recent call last):
File "get-pip.py", line 20890, in <module>
main()
File "get-pip.py", line 197, in main
bootstrap(tmpdir=tmpdir)
File "get-pip.py", line 82, in bootstrap
import pip._internal
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/__init__.py", line 40, in <module>
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/cli/autocompletion.py", line 8, in <module>
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/cli/main_parser.py", line 12, in <module>
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/commands/__init__.py", line 6, in <module>
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/commands/completion.py", line 6, in <module>
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/cli/base_command.py", line 18, in <module>
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/download.py", line 38, in <module>
File "/tmp/tmp_tcj3qgb/pip.zip/pip/_internal/utils/glibc.py", line 3, in <module>
File "/usr/local/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
帮助解决问题:
现在我只是打电话
pip3
我的 ubuntu 上有一个 Ubuntu 19.10 服务器,他们在 rasberry 网站上提供的结果如下: