pip 安装 rbox-iou-ops失败
收藏
PaddleDetection 2.0 需要安装paddledet,而paddledet依赖rbox-iou-ops,在安装rbox-iou-ops时报错gcc: error trying to exec 'cc1plus': execvp: No such file or directory。
在stack overflow找到相关的贴子:https://stackoverflow.com/questions/39455741/gcc-error-trying-to-exec-cc1plus-execvp-no-such-file-or-directory,给出了相关解决办法,但没有权限操作。
sudo apt update sudo apt upgrade sudo apt install gcc python3-dev python3-pip libxml2-dev libxslt1-dev zlib1g-dev g++
或
sudo apt-get install g++
详细错误:
Installing collected packages: rbox-iou-ops Running setup.py install for rbox-iou-ops ... error ERROR: Command errored out with exit status 1: command: /opt/conda/envs/python35-paddle120-env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l62s3cs3/rbox-iou-ops/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l62s3cs3/rbox-iou-ops/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dzowdqeo/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-l62s3cs3/rbox-iou-ops/ Complete output (10 lines): running install running build running build_ext /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/layers/utils.py:77: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working return (isinstance(seq, collections.Sequence) and Compiling user custom op, it will cost a few seconds..... building 'rbox_iou_ops' extension gcc -pthread -B /opt/conda/envs/python35-paddle120-env/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/include -I/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/include/third_party -I/usr/local/cuda/include -I/opt/conda/envs/python35-paddle120-env/include/python3.7m -c /tmp/pip-install-l62s3cs3/rbox-iou-ops/rbox_iou_op.cc -o /tmp/pip-install-l62s3cs3/rbox-iou-ops/build/rbox_iou_ops/lib.linux-x86_64-3.7/rbox_iou_op.o -g -w -std=c++11 gcc: error trying to exec 'cc1plus': execvp: No such file or directory error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/conda/envs/python35-paddle120-env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l62s3cs3/rbox-iou-ops/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l62s3cs3/rbox-iou-ops/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dzowdqeo/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
0
收藏
请登录后评论
要权限的吧……那都不行
嗯,sudo需要管理员权限。