先说我最后的成功步骤
pillow 8.3.1 py36h2c7a002_0
pip 21.2.2 py36h06a4308_0
pycocotools 2.0.4 pypi_0 pypi
pyparsing 3.0.8 pypi_0 pypi
python 3.6.13 h12debd9_1
python-dateutil 2.8.2 pypi_0 pypi
gcc -pthread -B /home/lixiaoyang/anaconda3/envs/detectron2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-build-env-v5napy8_/overlay/lib/python3.6/site-packages/numpy/core/include -I./common -I/home/lixiaoyang/anaconda3/envs/detectron2/include/python3.6m -c ./common/maskApi.c -o build/temp.linux-x86_64-3.6/./common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools which use PEP 517 and cannot be installed directly
之前会有关于gcc g++的报错所以
先进行gcc g++下载(二选一)
注意:这个步骤需要密码 密码不会显示 正常输入后enter 就行
sudo apt-get install -y g++
再进行
(detectron2) virtual-machine:~$ pip install pycocotools
就成了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)