我正在运行setup.py来编译暗流。当我运行命令yum install gcc-python3-plugin时,我总是碰到以下错误,我安装了gcc & g++-7
误差
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时
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.
>>> 有人知道是什么导致了这个错误吗?谢谢。
发布于 2019-09-24 12:55:06
迟了回答,但也许这能帮上一个人
gcc-7和g++-7是不同的东西。GCC是编译器的集合(GNU编译器集),而g++是c++的编译器,它包含在gcc中。您说您已经安装了gcc和g++-7,但是错误说它找不到gcc-7,所以尝试安装gcc-7。
https://stackoverflow.com/questions/52512986
复制相似问题