Windows缺少Python.h

时间:2015-11-02 08:54:29

标签: python windows theano

我正在尝试运行在Windows上使用GPU的示例Theano代码。 我的python(使用python-dev和Theano以及所有必需的库)是从Anaconda安装的。 这是我遇到的错误:

无法打开包含文件:'Python.h':没有这样的文件或目录

Python.h实际上是在c:// Anaconda / include /

我猜我应该将该目录添加到某个环境变量中,但我不知道哪个。

1 个答案:

答案 0 :(得分:2)

我假设您在Windows中使用Visual Studio。在解决方案资源管理器中右键单击您的项目 - >属性 - > C / C ++ - >一般 - > Addiational Include Direcrtories - >添加c:/ Anaconda / include /