解决ModuleNotFoundError: No module named ‘distutils.util‘
使用PyCharm配置Docker时更新解释器出现问题。
·
问题描述
使用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
更多推荐
已为社区贡献3条内容
所有评论(0)