首页 炼丹房 帖子详情
pip 安装 rbox-iou-ops失败
收藏
快速回复
炼丹房 问答新手上路 990 2
pip 安装 rbox-iou-ops失败
收藏
快速回复
炼丹房 问答新手上路 990 2

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
收藏
回复
全部评论(2)
时间顺序
AIStudio810260
#2 回复于2021-04

要权限的吧……那都不行

0
回复
朝圣之路3
#3 回复于2021-04

嗯,sudo需要管理员权限。

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户