Question: Hello, please how can i fix this error in python AttributeError : module 'graphviz.backend' has no attribute 'ENCODING' In [26]: H from sklearn. tree import

Hello, please how can i fix this error in python

AttributeError: module 'graphviz.backend' has no attribute 'ENCODING'

Hello, please how can i fix this error in pythonAttributeError: module 'graphviz.backend'

In [26]: H from sklearn. tree import export_graphviz import graphviz dot_data = export_graphviz(tree, class_names=[ "Not Accept", "Accept" ], feature_names=loan_feature_names, filled = True} graph = graphviz. Source (dot_data, format= "png") graph AttributeError Traceback (most recent call last) in 1 from sklearn. tree import export_graphviz -- --> 2 import graphviz 4 dot_data = export_graphviz(tree, class_names=["Not Accept", "Accept"], "\\anaconda]\\lib\\site-packages\\graphviz\\_init__. py in 25 19 26 ---> 27 from .dot import Graph, Digraph 28 from . files import Source 29 from . lang import escape, nohtml "\\anaconda]\\lib\\site-packages\\graphviz\\dot . py in 30 31 from . import backend ---> 32 from . import files 33 from . import lang 34 -\\anaconda]\\lib\\site-packages\\graphviz\\files. py in 29 21 ---) 22 class Base (object): 23 24 engine = "dot' \\anaconda]\\lib\\site-packages\\graphviz\\files . py in Base() 26 _format = "pdf' 27 ---) 28 _encoding = backend. ENCODING 29 30 @property AttributeError: module "graphviz. backend' has no attribute "ENCODING&quot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!