Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pydot没有属性';查找graphviz';_Python_Theano_Pydot - Fatal编程技术网

Python pydot没有属性';查找graphviz';

Python pydot没有属性';查找graphviz';,python,theano,pydot,Python,Theano,Pydot,我正在Windows 65位机器上运行Anaconda,python 3.5。我已经成功运行了 conda安装-c anaconda graphviz 还有派多特 在导入theano、pydot和numpy并实例化theano函数f之后,当我尝试运行 theano.printing.pydotprint(f, outfile='f.png',var_with_name_simple=True) 我得到属性错误: 文件“C:\Users\Me\Anaconda3\lib\site package

我正在Windows 65位机器上运行Anaconda,python 3.5。我已经成功运行了
conda安装-c anaconda graphviz 还有派多特

在导入theano、pydot和numpy并实例化theano函数f之后,当我尝试运行

theano.printing.pydotprint(f, outfile='f.png',var_with_name_simple=True)
我得到属性错误:

文件“C:\Users\Me\Anaconda3\lib\site packages\theano\printing.py”,第35行,在 如果pd.find_graphviz():

AttributeError:模块“pydot”没有属性“find_graphviz”

怎么了?我运行的pydot版本不好吗


--Ken

来自github上的相关问题:
尝试安装
pydot ng
而不是
pydot

功能
find_graphviz
已在
pydot==1.2.3
中删除。有关更多详细信息,请参阅。相反,
pydot
在当前环境的
PATH
变量中搜索GraphViz可执行文件。

您是如何安装pydot的? 据我所知,pydot的Pip安装仅支持python 2.7版本

对于Python3+,您可以尝试其他版本的pydot,该版本可在。我使用了pydotplus:

conda install -c conda-forge pydotplus 

嗯,65位的机器非常罕见,我认为theano不支持它:)