AttributeError: 'list' object has no attribute 'write_pdf'
2017-11-12 22:11
561 查看
AttributeError: 'list' object has no attribute 'write_pdf'
我在可视化决策树,运行以下代码时报错:AttributeError: 'list' object has no attribute 'write_pdf'我使用的是python3.4
try with pydotplus:
pydot.graph_from_dot_data()returns a list, so try:
[1]http://stackoverflow.com/questions/38176472/graph-write-pdfiris-pdf-attributeerror-list-object-has-no-attribute-writ
来源:https://www.cnblogs.com/iamxyq/p/5918611.html
相关文章推荐
- AttributeError: 'list' object has no attribute 'write_pdf'
- AttributeError: 'module' object has no attribute '_handlerList' 错误解决方法
- sqlalchemy enum AttributeError: 'list' object has no attribute 'replace'
- AttributeError: '_NamespacePath' object has no attribute 'sort'
- python AttributeError: 'module' object has no attribute 'setdefaultencoding'
- AttributeError: 'module' object has no attribute 'fullmatch'.
- 关于AttributeError:'numpy.ndarray' object has no attribute 'index'
- AttributeError: 'module' object has no attribute 'reader'
- 【TensorFlow问题】AttributeError:'module' object has no attribute 'mul'
- AttributeError: 'NoneType' object has no attribute 'execute' 错误的解决
- AttributeError: 'module' object has no attribute 'text_format'
- web.py 启动时候出现AttributeError: 'module' object has no attribute 'inet_pton'错误
- AttributeError: 'module' object has no attribute 的解决方法
- AttributeError: 'module' object has no attribute '_base' 可行解决办法
- AttributeError:'module' object has no attribute 'classify'
- python AttributeError: 'module' object has no attribute 'dumps'解决办法
- AttributeError: 'module' object has no attribute 'randint'
- 执行《机器学习实战》15章代码15-3出现AttributeError: 'MRmean' object has no attribute 'mr'
- AttributeError: 'module' object has no attribute 'XXX'
- AttributeError: 'module' object has no attribute 'text_format'