我正在运行 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.
>>>
有谁知道是什么导致了错误?谢谢你。