How to install dtreeviz for Decision Tree Visualization on Windows without system admin permissions
Jul 29, 2022
references:
steps:
- open cmd window and run the following scripts
pip install dtreeviz # install dtreeviz for sklearn pip install dtreeviz[xgboost] # install XGBoost related dependency pip install dtreeviz[pyspark] # install pyspark related dependency pip install dtreeviz[lightgbm] # install LightGBM related dependency
- download the graphviz file
- search
2.38.msi
on this page https://www2.graphviz.org/Archive/stable/windows/ - download the file to local and unzip it
- search
- in jupyter notebook, run the following lines
- replace
C:/Users/abc/Documents/Graphviz
with the actual directory ofGraphviz
folderimport os os.environ["PATH"] += os.pathsep + 'C:/Users/abc/Documents/Graphviz/bin;C:/Users/abc/Documents/Graphviz/bin/dot.exe;'
- replace