Theano Import error
Asked Answered
B

3

8

I am trying to install Theano on CPU machine (running intel HD graphics, without NVIDIA). I get the following import error while testing in python.

WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to exe
cute optimized C-implementations (for both CPU and GPU) and will default to Pyth
on implementations. Performance will be severely degraded. To remove this warnin
g, set Theano flags cxx to an empty string.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\anaconda\pkgs\theano\theano\__init__.py", line 74, in <module>
    from theano.printing import pprint, pp
  File "c:\anaconda\pkgs\theano\theano\printing.py", line 19, in <module>
    if pd.find_graphviz():
  File "C:\Anaconda\lib\site-packages\pydot.py", line 409, in find_graphviz
    "SOFTWARE\ATT\Graphviz", 0, win32con.KEY_QUERY_VALUE )
pywintypes.error: (2, 'RegOpenKeyEx', 'The system cannot find the file specified
.')

I have the g++ installed though.

Thanks.

Bibliophile answered 29/6, 2015 at 4:26 Comment(0)
C
18

As described in the documentation, make sure you have done this when using Anaconda.

conda install mingw libpython
Chariness answered 29/6, 2015 at 6:58 Comment(1)
Thanks this really helped me in clean installation of g++Ivelisseivens
S
1

If you use Pycharm on windows, following the following steps:

  • install anaconda
  • Change your interpreter to anaconda python
  • install theano
  • install mingw
  • install libpython
Sportswoman answered 19/1, 2017 at 1:8 Comment(0)
H
0

Try this:

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

ten,

from theano import *

It is Worked for me

Hexavalent answered 27/1, 2017 at 12:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.