title: PyCharm + Anaconda: Problems with Theano (cannot find g++)
body: <p>I just installed Anaconda and PyCharm on Windows 8.1 (64 bit). For an existing project, i created a conda environment which includes Theano and some other librarires.</p>
  
  <p>Theano is able to use the GPU (with CUDA) or the CPU for its calculations. I prefer to use the GPU, because it is much faster.</p>
  
  <p>If i start a test script of the project in the command line, i get the following output:</p>
  
  <pre><code>Using gpu device 0: GeForce GT 650M (CNMeM is enabled with initial size: 85.0% of memory, cuDNN not available)
  ...
  </code></pre>
  
  <p>This is what i like to have as output.</p>
  
  <p>I also tried to do this with PyCharm. I installed it and i used the correct conda environment, but i always get this output:</p>
  
  <pre><code>WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
  WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available  (error: cuda unavailable)
  ...
  </code></pre>
  
  <p>Theano then uses the CPU (which is incredibly slow...).
  In the command line i checked where "g++" is located:</p>
  
  <pre><code>(venv) E:\XXX\panoptes_dl&gt;where g++
  C:\Users\XXX\Anaconda2\envs\venv\Scripts\g++.bat
  </code></pre>
  
  <p>This means the used g++ is inside the Script-directory of the created environment. Sure, i could add the path <code>C:\Users\XXX\Anaconda2\envs\venv\Scripts</code> to the system's path variable, but this is very ugly, because i also have to use different environments.</p>
  
  <p>Does someone has an idea how this can be done with PyCharm?</p>
  
  <p>Thank you very much</p>
  
  <p>Regards</p>
  
  <p>Kevin</p>