Ubuntu系统 cmake 时出现错误:fatal error: pyconfig.h: No such file or directory
2017-05-25 10:31
806 查看
首先第一件事确认有没有装python-dev或者python3-dev,如果没有的话,用apt安装就好。
我的已经安装了,并且自己都能在目录:
/usr/include/python3.5
下面找到pyconfig.h文件。所以估计是编译器找不到这个路径,加上路径即可,添加的语句为:
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/python3.5
后面的路径根据自己情况修改。
注意这个语句是重启后就不生效了。
我的已经安装了,并且自己都能在目录:
/usr/include/python3.5
下面找到pyconfig.h文件。所以估计是编译器找不到这个路径,加上路径即可,添加的语句为:
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/python3.5
后面的路径根据自己情况修改。
注意这个语句是重启后就不生效了。
相关文章推荐
- (ubuntu) pip install scandir 时出现错误 fatal error: Python.h: No such file or directory
- Ubuntu出现错误 ----Fatal error: Python.h: No such file or Directory
- 编译Busybox时,出现错误fatal error: curses.h: No such file or directory
- 安装pycrypto出现“fatal error: Python.h: No such file or directory”错误
- 编译Busybox时,出现错误fatal error: curses.h: No such file or directory
- 编译Linux内核时出现错误gcc: error: elf_i386: No such file or directory
- (诊断)处理错误fatal error: Python.h: No such file or directory
- Ubuntu安装paramiko _openssl.c:433:30: fatal error: openssl/opensslv.h: No such file or directory
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- QT关于“fatal error: QApplication: No such file or directory“错误解决
- 【Ubuntu】cannot find -lixxx && fatal error: xxx.h: No such file or directory 解决方法参考
- 编译boost python模块遇到的错误:../../libraries/boost_1_44_0/boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory
- Gcc 4.6 编译 Linux kernel时出现错误error: elf_i386: No such file or directory
- 在Ubuntu安装完成后更改默认的语言LANG,出现Cannot set LC_CTYPE to default locale: No such file or directory错误的解决办法
- 32位ubuntu 12.04 下 error: gnu/stubs-32.h: No such file or directory错误解决办法
- Ubuntu系统错误_run-init:/sbin/init:No such file or directory
- ubuntu中fatal error: mysql.h: No such file or directory
- make时出现txc_dxtn.h:28:19: fatal error: GL/gl.h: No such file or directory的解决办法
- ubuntu添加qmake 出现错误 qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
- 编译QtE出现qbytearray.cpp:52:18: fatal error: zlib.h: No such file or directory