【发布时间】:2017-12-08 17:00:20
【问题描述】:
我正在尝试通过 Anaconda Navigator 安装 pydot_ng 和 graphviz,但我不断收到 pydot_ng (1.0.0.15) 的此错误:
UnsatisfiableError: The following specifications were found to be in conflict:
- pydot-ng -> python 2.7*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
我该如何进行? 没有 pydot,我无法使用 Keras 可视化工具。 我已经安装了 pydot plus,但 Keras 似乎在 iPython notebook 中以这个错误拒绝它。
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\vis_utils.py", line 131, in plot_model
dot = model_to_dot(model, show_shapes, show_layer_names, rankdir)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\vis_utils.py", line 52, in model_to_dot
_check_pydot()
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\vis_utils.py", line 27, in _check_pydot
raise ImportError('Failed to import pydot. You must install pydot'
ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
【问题讨论】:
标签: python-3.x installation anaconda keras pydot