【发布时间】:2014-08-21 09:52:34
【问题描述】:
想用一些 python 来扩展我的 c++。
正在构建的文件:
#include <Python.h>
错误:
[DIR]:1:20: fatal error: Python.h: No such file or directory
#include <Python.h>
我正在使用 sublime text 2 来构建我的代码
sudo apt-get install python-dev
locate Python.h
/usr/include/python2.7/Python.h
^python 开发是最新的
发现一些谷歌链接谈论包括构建路径或其他内容,但这不是我的强项
-I/usr/include/python2.7/
尝试将此添加到包下 C++.sublime-text 文件中的构建命令中,但只是破坏了构建系统。救命啊,我是个无能的小人
【问题讨论】:
-
+1 称自己为无知的小人
-
这个命令在你的系统上的输出是什么:
sudo updatedb && locate Python.h -
~/Downloads/Python-2.7.5/Include/Python.h/usr/include/python2.7/Python.h/usr/local/include/python2.7/Python.h感谢您的宝贵时间 -
你看过类似的问题吗? stackoverflow.com/questions/11041299/…
标签: python c++ sublimetext2