Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'six' from 'sklearn.externals' #52

Open
cpeisert opened this issue Jul 24, 2020 · 1 comment
Open

ImportError: cannot import name 'six' from 'sklearn.externals' #52

cpeisert opened this issue Jul 24, 2020 · 1 comment

Comments

@cpeisert
Copy link

Environment:

  • OS: WSL Ubuntu
  • Python 3.8
  • Dependencies installed:
    • mlrose 1.3.0
    • numpy 1.19.0
    • scipy 1.5.1
    • six 1.14.0
    • sklearn 0.0

When importing mlrose, receive error:

File "/lib/python3.8/site-packages/mlrose/__init__.py", line 12, in <module>
    from .neural import NeuralNetwork, LinearRegression, LogisticRegression
File "/lib/python3.8/site-packages/mlrose/neural.py", line 12, in <module>
    from sklearn.externals import six
ImportError: cannot import name 'six' from 'sklearn.externals' (/lib/python3.8/site-packages/sklearn/externals/__init__.py)

Also see stackoverflow question: https://stackoverflow.com/q/61867945/1164465

@JohnStratoudakis
Copy link

@cpeisert Check out the comments in this pull request:

#50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants