不支持更高版本的gcc

时间:2020-05-26 10:20:39

标签: gcc gnu

我刚刚建立了一个Ubuntu。 我正在尝试改变Darknet的现状。我有这个错误。

/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版本吗?

1 个答案:

答案 0 :(得分:1)

我解决了!

Python版本控制是原因。

已通过重新建立并重新安装软件包的路径来解决。