Fix Issue of installing “pydot”

孤街醉人 提交于 2020-01-17 05:32:07

问题


I tried to install the pydot package with following command,

sudo pip install pydot

After that, I tried to test whether it's successfully installed, but encountered following error.

import pydot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pydot.py", line 22, in <module>
    __version__ = '1.0.%d' % int( __revision__[21:-2] )
ValueError: invalid literal for int() with base 10: ''

How could I fix this issue?

BTW, I have successfully installed graphviz package, as a prerequisite. And my python version is 2.7.6.


回答1:


Have you tried pip install pydot2? it work on me.



来源:https://stackoverflow.com/questions/32158889/fix-issue-of-installing-pydot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!