i got this error on spyder ImportError: cannot import name 'six' from 'sklearn.externals' despite i have installed the six module

746 views Asked by At

File "C:\Users\Baha cherni\Desktop\python\tp\tp22222.py", line 7, in from sklearn.externals import six

ImportError: cannot import name 'six' from 'sklearn.externals' (C:\Users\Baha cherni\anaconda3\lib\site-packages\sklearn\externals_init_.py)

1

There are 1 answers

0
addno1 On

Looks like sklearn.externals.six is deprecated, you can try importing six with import six. Similar question is available here.