gpt4 book ai didi

ubuntu - 如何修复 "ModuleNotFoundError: No module named ' setuptools'"

转载 作者:行者123 更新时间:2023-12-04 19:00:18 24 4
gpt4 key购买 nike

我在 PyCharm 中创建了一个新项目,在解释器的设置中我看到了消息:'找不到 python 打包工具'。当我单击“安装打包工具”时出现此错误

Traceback (most recent call last):
File "/tmp/tmp_mwyd_zhpycharm-management/pip-19.0.3/setup.py", line 6, in <module>
from setuptools import find_packages, setup
ModuleNotFoundError: No module named 'setuptools'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
File "/tmp/tmp_mwyd_zhpycharm-management/pip-19.0.3/setup.py", line 6, in <module>
from setuptools import find_packages, setup
ModuleNotFoundError: No module named 'setuptools'

我试过:sudo apt-get update、sudo apt-get upgrade、sudo apt-get install python-setuptools 没有任何帮助解决它。

最佳答案

设置工具 是一个 Python 包。您可以使用 安装它点 :

pip install setuptools

关于ubuntu - 如何修复 "ModuleNotFoundError: No module named ' setuptools'",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55923868/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com