14

I'm trying to run a sample Theano code that uses GPU on windows. My python (with python-dev and Theano and all required libraries) was installed from Anaconda. This is the error I run into:

Cannot open include file: 'Python.h': No such file or directory

My Python.h is actually in c://Anaconda/include/

I'm guessing that I should add that directory to some environmental variable, but I don't know which.

Diggy.
  • 6,744
  • 3
  • 19
  • 38
user1934733
  • 171
  • 1
  • 1
  • 6

1 Answers1

15

If you are using Visual Studio in Windows, right-click on your project in the Solution Explorer and navigate as follows: Properties -> C/C++ -> General -> Additional Include Directories -> Add C:/Anaconda/include/ (or wherever your Anaconda install is located)

Diggy.
  • 6,744
  • 3
  • 19
  • 38
acai
  • 459
  • 4
  • 9