首页 > 解决方案 > 无法安装 python3-setuptools

问题描述

我正在使用 python 3.4.3。

当我尝试在终端上运行此代码时(一旦我已经在相应的文件夹中)

pip3 install python3-setuptools

我收到此错误消息:

Collecting python3-setuptools
Could not find a version that satisfies the requirement python3 setuptools (from versions: ) No matching distribution found for python3-setuptools

谁能帮我解决这个问题?

标签: pythonpython-3.xpipsetuptools

解决方案


你不能安装python3-setuptools——pip没有这样的 pip 可安装包:https ://pypi.org/project/python3-setuptools/——错误 404。在 python 生态系统中,该包被简单地称为setuptools

python3-setuptools是 Debian/Ubuntu 软件包系统中的软件包名称:

https://packages.debian.org/search?keywords=python3-setuptools&searchon=names&suite=stable§ion=all

https://packages.ubuntu.com/search?keywords=python3-setuptools&searchon=names&suite=bionic§ion=all

因此,您可以使用apt install python3-setuptools或安装它pip3 install setuptools


推荐阅读