解决ModuleNotFoundError: No module named ‘distutils.util‘

简介: 解决ModuleNotFoundError: No module named ‘distutils.util‘

问题描述

使用PyCharm配置Docker时更新解释器出现问题

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/opt/.pycharm_helpers/pip-20.3.4-py2.py3-none-any.whl/pip/__main__.py", line 23, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/opt/.pycharm_helpers/pip-20.3.4-py2.py3-none-any.whl/pip/_internal/cli/main.py", line 10, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/opt/.pycharm_helpers/pip-20.3.4-py2.py3-none-any.whl/pip/_internal/cli/autocompletion.py", line 9, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/opt/.pycharm_helpers/pip-20.3.4-py2.py3-none-any.whl/pip/_internal/cli/main_parser.py", line 7, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/opt/.pycharm_helpers/pip-20.3.4-py2.py3-none-any.whl/pip/_internal/cli/cmdoptions.py", line 18, in <module>
ModuleNotFoundError: No module named 'distutils.util'

解决方案:

在终端输入以下命令即可

sudo apt-get install python3-pip


目录
相关文章
|
6月前
|
Linux iOS开发 索引
【已解决】ModuleNotFoundError: No module named ‘matplotlib‘
【已解决】ModuleNotFoundError: No module named ‘matplotlib‘
|
6月前
|
Linux iOS开发 MacOS
【已解决】ModuleNotFoundError: No module named ‘IPython‘
【已解决】ModuleNotFoundError: No module named ‘IPython‘
|
4月前
|
自然语言处理 数据处理 Python
【Python】已解决:ModuleNotFoundError: No module named ‘LAC‘
【Python】已解决:ModuleNotFoundError: No module named ‘LAC‘
57 0
|
6月前
|
Linux iOS开发 MacOS
[已解决]ModuleNotFoundError: No module named ‘tqdm‘
[已解决]ModuleNotFoundError: No module named ‘tqdm‘
Py3 ModuleNotFoundError: No module named ‘Crypto‘;ModuleNotFoundError: No module named Cryptodome‘
Py3 ModuleNotFoundError: No module named ‘Crypto‘;ModuleNotFoundError: No module named Cryptodome‘
99 0
|
6月前
|
Python
ModuleNotFoundError: No module named ‘IPython‘
ModuleNotFoundError: No module named ‘IPython‘
142 0
|
Python
spyder下报错ModuleNotFoundError: No module named
spyder下报错ModuleNotFoundError: No module named
416 0
ModuleNotFoundError: No module named ‘conda‘
ModuleNotFoundError: No module named ‘conda‘
ModuleNotFoundError: No module named ‘exceptions‘
ModuleNotFoundError: No module named ‘exceptions‘
|
异构计算
ModuleNotFoundError: No module named ‘mmcv._ext‘
最近想将mmsegmentation打包成exe进行使用,但是遇到了一个问题,在打包的过程中不会显示报错信息,但是在执行exe程序之后,exe会出现ModuleNotFoundError: No module named 'mmcv._ext'的报错,导致软件崩溃。
991 0