Python.h在Windows中存在时未找到
Python.h not found when it exists Windows
我只是想让它编译,然后继续执行实际的代码,但每当我试图编译它时,它都会说fatal error: Python.h: No such file or directory
我已经尝试了一切,但仍然如此。我正在使用NetBeans,在"附加库目录"中我放入C:/Python27/libs
,在"包含目录"中放入C:/Python27/include
#include <iostream>
#include <Python.h>
using namespace std;
int main(int argc, char** argv) {
cout << "Hello World!";
return 0;
}
Python.h本身需要在include路径中,库也需要在库路径中。
相关文章:
- C++模板来检查友元函数的存在
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- 在Linux for Windows上编译C++代码时出错
- 在Windows上用C++裁剪HBITMAP
- C++ Windows 驱动程序MSB3030无法复制该文件,因为它找不到
- 既然存在危险,为什么项目要使用-I include开关
- 在 Windows 10 下使用 GTest 的 CMake - 致命错误 LNK1104:无法打开文件"gtest.lib",但存在调试"gtestd.lib"
- CMake 生成的程序无法在 Windows 上链接:尝试链接到不存在的文件
- 为什么在Windows和Mac OS中运行UnionFind时存在广泛的运行时变化?
- 如何确定Windows 10中的高对比度主题是否存在
- C 内存在Windows 7上泄漏
- 部署Qt-dll文件-找不到windows插件,尽管平台/qwindows.dll存在,因此存在libEGL和libGL
- Windows 10 上的 Python 3.5 - 无法安装 cx_freeze - "cxfreeze-postinstall"不存在
- 当我从 Windows 请求"Miriam"字体时,我得到的是"Arial"字体。这怎么可能,因为字体文件"mriam.ttf"存在于我的系统中?
- 检查给定设备 ID 是否存在 Windows 驱动程序
- 是否存在Windows从不用于processID的特殊值
- 在UTF-8内部工作,然后仅在Windows中需要时转换为UTF-16,是否存在任何危险
- Python.h在Windows中存在时未找到
- 检查Windows安装盘中是否存在file,是否已连接
- 如何在windows窗体应用程序中删除一个已存在的矩形