COCO API: fatal error: Python.h: No such file or directory
我的系统为ubuntu 16.04今天我在安装tensorflow objection detection api的cocoapi的时候出现了下面的问题:x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat ...
·
我的系统为ubuntu 16.04
今天我在安装tensorflow objection detection api的cocoapi的时候出现了下面的问题:
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wfor
mat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.5/dist-packages/numpy/
core/include -I../common -I/usr/include/python3.5m -c pycocotools/_mask.c -o build/temp.linux-x86_64-3.5/pycocoto
ols/_mask.o -Wno-cpp -Wno-unused-function -std=c99
pycocotools/_mask.c:4:20: fatal error: Python.h: No such file or directory
发现网上csdn的办法死活救不了我的问题,后面发现是我的python 3.5没有安装完全,输入:
sudo apt-get install python3-dev
这样弄一下,就可以了。
参考文献
[1].tensorflow/models. https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md
[2].fatal error: Python.h: No such file or directory. https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
更多推荐
已为社区贡献2条内容
所有评论(0)