首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gcc-7: g++-7:没有这样的文件或目录

gcc-7: g++-7:没有这样的文件或目录
EN

Stack Overflow用户
提问于 2018-09-26 08:12:14
回答 1查看 679关注 0票数 1

我正在运行setup.py来编译暗流。当我运行命令yum install gcc-python3-plugin时,我总是碰到以下错误,我安装了gcc & g++-7

误差

代码语言:javascript
复制
running build_ext building 'darkflow.cython_utils.nms' extension gcc-7 CXX=g++-7 -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g
-fdebug-prefix-map=/build/python3.6-EKG1lX/python3.6-3.6.5=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/include/python3.6m -c darkflow/cython_utils/nms.c -o build/temp.linux-x86_64-3.6/darkflow/cython_utils/nms.o gcc-7: error: CXX=g++-7: No such file or directory error: command 'gcc-7' failed with exit status 1

当我运行python时

代码语言:javascript
复制
ubuntu@host1 # python3
Python 3.6.5 (default, Apr  1 2018, 05:46:30) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

有人知道是什么导致了这个错误吗?谢谢。

EN

回答 1

Stack Overflow用户

发布于 2019-09-24 12:55:06

迟了回答,但也许这能帮上一个人

gcc-7g++-7是不同的东西。GCC是编译器的集合(GNU编译器集),而g++是c++的编译器,它包含在gcc中。您说您已经安装了gccg++-7,但是错误说它找不到gcc-7,所以尝试安装gcc-7

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52512986

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档