Importing theano: AttributeError: 'module' object has no attribute 'find_graphviz'

后端 未结 4 787
太阳男子
太阳男子 2020-12-28 09:12

When I run import theano in Python, I get the following error message:

Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type          


        
4条回答
  •  粉色の甜心
    2020-12-28 09:34

    For some reason, the Python module pydot was creating the issue:

    Python 2.7.6 (default, Jun 22 2015, 17:58:13)
    [GCC 4.8.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
    >>> import pydot
    >>> pydot.find_graphviz()
    Traceback (most recent call last):
      File "", line 1, in 
    AttributeError: 'module' object has no attribute 'find_graphviz'
    

    I was using pydot 1.2.2.

    I uninstalled it using sudo pip uninstall -y pydot, and I then was able to successfully import theano.

    Bug report: https://github.com/Theano/Theano/issues/4759

提交回复
热议问题