Skip to content

mglearn error  #175

Description

@sebgok

Hi,
I am not able to practice the codes in the book because I am stuck with importing mglearn. (I am using PyCharm). Here is the error message I receive:

Traceback (most recent call last):
File "/Users/sebgok/PycharmProjects/Book/sampleDatasets.py", line 4, in
import mglearn
File "/Users/sebgok/PycharmProjects/Book/venv/lib/python3.8/site-packages/mglearn/init.py", line 1, in
from . import plots
File "/Users/sebgok/PycharmProjects/Book/venv/lib/python3.8/site-packages/mglearn/plots.py", line 2, in
from .plot_interactive_tree import plot_tree_progressive, plot_tree_partition
File "/Users/sebgok/PycharmProjects/Book/venv/lib/python3.8/site-packages/mglearn/plot_interactive_tree.py", line 6, in
from sklearn.externals.six import StringIO # doctest: +SKIP
ModuleNotFoundError: No module named 'sklearn.externals.six'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions