【问题标题】:Could not find a version that satisfies the requirement gcc7 (from versions: )找不到满足 gcc7 要求的版本(来自版本:)
【发布时间】:2020-05-03 20:21:17
【问题描述】:

我尝试使用命令安装 gcc7

pip install gcc7 

https://pypi.org/project/gcc7/所示。

但我收到以下错误。有人可以建议如何解决这个问题吗?

C:\Users\Harsha>pip install gcc7
ERROR: Could not find a version that satisfies the requirement gcc7 (from versions: none)
ERROR: No matching distribution found for gcc7

这是我的系统信息

C:\Users\Harsha>python --version
Python 3.7.3

我也升级了 pip 版本。

【问题讨论】:

标签: python


【解决方案1】:

如果您在谈论这个:https://pypi.org/project/gcc7/,那么它确实支持 Windows(根据您的命令行提示,您似乎在 Windows 上)。

最新版本0.0.9 仅具有适用于 Mac 的轮子(因此它可以在 Mac 上正常安装)。旧版本0.0.7 有适用于 Linux 和 Mac 的轮子(所以这个旧版本可以在 Linux 上正常安装)。它没有适用于 Windows 的安装文件,因此您将无法在 Windows 上安装它。

这是有道理的,因为 gcc 在 Windows 上不受本机支持。您将不得不找到另一种方法以某种方式在 Windows 上获取 gcc

【讨论】:

  • 请提供另一种安装gcc的方法。我花了超过 2 天的时间才找到这个。
  • @AnujSharma 问题是特别是关于安装 Python 包 gcc7 的问题,我已经在这里回答过它在 Windows 上不受支持。如果您的问题是一般在 Windows 上安装 gcc,我建议您发布自己的单独问题。不过,请务必先搜索,因为that's already been asked/answered many times before。 (我也没有 Windows 机器,所以我真的无法回答 Windows)。
猜你喜欢
  • 2019-04-15
  • 2020-02-12
  • 2016-12-29
  • 1970-01-01
  • 1970-01-01
  • 2023-03-20
  • 2020-07-24
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多