java系统找不到指定文件怎么解决
304
2022-08-25
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 -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/pycocotools/_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. error: Python.h: No such file or directory. https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~