当前位置:   article > 正文

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

no module named 'distutils

问题描述

使用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'

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

解决方案:

在终端输入以下命令即可

sudo apt-get install python3-pip
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/562915
推荐阅读
相关标签
  

闽ICP备14008679号