【问题标题】:Cannot install python3-setuptools无法安装 python3-setuptools
【发布时间】:2018-10-10 15:04:19
【问题描述】:

我正在使用 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

有人可以帮我解决这个问题吗?

【问题讨论】:

  • 我不明白你的问题。你想做什么。您的标题显示“Levenshtein 软件包安装错误”,但在您的问题正文中,您说您已经安装了它,然后正在运行pip3 install python3-setuptools,但目前尚不清楚您为什么要这样做以及您期望发生什么以及它是如何发生的与您尝试安装 Levenshtein 相关
  • 我已经安装了它,但是我无法在 python 中导入它。我得到一个导入错误模块未找到......不知道为什么:/所以我想知道它是否是我没有做对的其他事情
  • 我在终端上也收到了这个消息 -bash levenshtein: pip3 install levenshtein Collecting levenshtein Could not find a version that satisfies the requirement levenshtein (from versions: ) 没有找到与 levenshtein 匹配的分布。我不知道为什么,但是 levenshtein 包出了点问题……它似乎没有正确安装?

标签: python python-3.x pip setuptools


【解决方案1】:

您不能使用pip 安装python3-setuptools — 没有这样的 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&section=all

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

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

【讨论】:

  • 非常感谢!我会试试看 :) 对不起,这里有点菜鸟
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-07-28
  • 2019-08-05
  • 1970-01-01
  • 1970-01-01
  • 2015-09-22
  • 2023-03-04
  • 1970-01-01
相关资源
最近更新 更多