未找到Tensorflow pydotprint的Jupyter错误 [英] Jupyter w/ Tensorflow pydotprint not found error
问题描述
我正在使用tensorflow docker镜像以这种方式运行:
I'm using the tensorflow docker image run this way:
docker run -it --rm -v $(realpath ~/Documents/notebooks):/tf/notebooks -p 8888:8888 tensorflow/tensorflow:latest-py3-jupyter
我正在尝试生成自己制作的模型的点文件/图,但是所有功能都说:
I'm trying to generate dot files / plots of the model I've made, but all of the functions say:
无法导入pydot.您必须安装pydot和graphviz
pydotprint
上班.
Failed to import pydot. You must install pydot and graphviz for
pydotprint
to work.
在笔记本顶部,我有:
!pip install pydot
!pip install graphviz
我正在使用Tensorflow 2.0.0
And I'm using Tensorflow 2.0.0
如何使它正常工作?我所见过的一切都说要使用pip安装这些模块.我已经做到了,但这似乎无济于事.
How do I get this to work? Everything I've seen says to install those modules with pip. I've done that, but it doesn't seem to help.
推荐答案
使用
conda install graphviz
conda install pydot
可以解决问题.
graphviz
似乎是系统级软件包,应由conda
或apt/yum/brew
It seems like that graphviz
is a system level package which should be installed by conda
or apt/yum/brew
这篇关于未找到Tensorflow pydotprint的Jupyter错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!