【问题标题】:gcc versions later are not supported不支持更高版本的 gcc
【发布时间】:2020-09-13 02:56:56
【问题描述】:

我刚刚设置了一个 Ubuntu。 我正在尝试改变暗网的 yolo。我遇到了这个错误。

/usr/local/cuda/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
  138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!

我也试过了

sudo apt install gcc-4.9 g++-4.9

我明白了

Package g++-4.9 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gcc-4.9' has no installation candidate
E: Package 'g++-4.9' has no installation candidate

下载最新版本似乎出现版本错误。 你知道如何降级gcc版本吗?

【问题讨论】:

标签: gcc gnu


【解决方案1】:

我解决了!

Python 版本控制是原因。

通过重新建立和重新安装包的路径解决了。

【讨论】:

  • 你的意思是你升级了Python版本?最后哪个版本有效?谢谢!!
猜你喜欢
  • 2021-04-12
  • 2017-08-26
  • 2014-08-18
  • 1970-01-01
  • 1970-01-01
  • 2022-11-08
  • 2010-12-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多