VS里面引用Python.h报错
VS里面引用Python.h报错,已经添加了环境变量C:\Python27;C:\Python27\include
#include <iostream>
#include <Python.h>
using namespace std;
int main()
{
cout << "hello,world" <<endl;
system("pause");
return 0;
}
Error 1 error C1083: Cannot open include file: 'Python.h': No such file or directory C:\Users\xx\documents\visual studio 2013\Projects\Project1\test.cpp 2 1 Project1
如果引用全路径是可以的
#include <C:\Python27\include\Python.h>