Skip to content

Commit 824f84a

Browse files
committed
Clarification for installing mglearn, use graphviz-python instead of pip install graphviz.
1 parent 4d82658 commit 824f84a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ For the curious ones, the cover depicts a [hellbender](https://en.wikipedia.org/
2020
All datasets are included in the repository, with the exception of the aclImdb dataset, which you can download from
2121
the page of [Andrew Maas](http://ai.stanford.edu/~amaas/data/sentiment/). See the book for details.
2222

23+
If you get ``ImportError: No module named mglearn`` you can try to install mglearn into your python environment using
24+
the command ``pip install mglearn`` in your terminal or ``!pip install mglearn`` in Jupyter Notebook.
25+
2326

2427
## Errata
2528
Please note that the first print of the book is missing the following line when listing the assumed imports:
@@ -39,13 +42,8 @@ The easiest way to set up an environment is by installing [Anaconda](https://www
3942
### Installing packages with conda:
4043
If you already have a Python environment set up, and you are using the ``conda`` package manager, you can get all packages by running
4144

42-
conda install numpy scipy scikit-learn matplotlib pandas pillow graphviz
43-
44-
and then *also*
45-
46-
pip install graphviz
45+
conda install numpy scipy scikit-learn matplotlib pandas pillow graphviz graphviz-python
4746

48-
(Explanation: the conda package graphiz is the C library, not the python library)
4947

5048
### Installing packages with pip
5149
If you already have a Python environment and are using pip to install packages, you need to run

0 commit comments

Comments
 (0)