在python中import theano时,如果出现Couldn't import dot_parser, loading of dot files will not be possible.之类的错误,可以按如下步骤解决
1.pip uninstall pydot pyparsing graphviz
2.如果是window,先安装graphviz-2.38.msi;如果是Ubuntu系统,则apt-get install graphviz,并将graphviz的bin目录的路径添加到系统PATH变量中
3.pip install graphviz
4.pip install pyparsing==2.0.1
4.pip install pydot
经此几个步骤后,应该就可以正常使用theano和pydot等库文件了。