Open TimOliverMaier opened 4 years ago
I found a stackoverflow post at the following URL: https://stackoverflow.com/a/62354885/10039356 So I add the following lines to my little project and it is now working after the SciKit-learn update to 0.23:
import six import sys sys.modules['sklearn.externals.six'] = six
It now works for me
Hello,
By importing id3 I encounter this error on my setup. Is it possible that importing six from sklearn.externals is outdated?
File "/usr/local/lib/python3.7/site-packages/id3/__init__.py", line 3, in <module> from .export import export_graphviz File "/usr/local/lib/python3.7/site-packages/id3/export.py", line 1, in <module> from sklearn.externals import six ImportError: cannot import name 'six' from 'sklearn.externals' (/usr/local/lib/python3.7/site-packages/sklearn/externals/__init__.py)
thank you