我刚刚设置了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版本吗?
我解决了!
Python版本控制是原因。
通过重新建立并重新安装软件包的路径已解决。