(记录一下pydot,pyparsing安装排坑)
#在学习深度学习课程的时候,需要用到graphviz,pydot。安装pydot花了我半个晚上的时间,终于解决了,记录一下。
在使用pip安装pydot的时候,出现了“Cannot uninstall ‘pyparsing’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.”
百度搜索,看到了
“1.安装graphviz:pip install graphviz
2.安装graphviz软件
3.把安装后的graphviz软件的bin目录设为环境变量,重启。
4.安装pydot:pip install pydot”,
这种方法并没有解决我的问题。
最终使用“sudo pip install pydot --ignore-install pyparsing”这个方法解决了。
如果是在Python3下安装的pip3,将pip换成pip3即可。