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

cannot import name 'six' from 'sklearn.externals' (/opt/anaconda3/lib/python3.7/site-packages/sklearn/externals/__init__.py) #375

Closed
ghost opened this issue Aug 20, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Aug 20, 2020

It has been 2 days that I am trying to import pmdarima. But I can not I keep getting this error:

cannot import name 'six' from 'sklearn.externals' (/opt/anaconda3/lib/python3.7/site-packages/sklearn/externals/__init__.py)

I imported six separately but nothing changed. I am using Mac .os64, in Jupyter Notebook python 3.7

@ghost ghost added the 🪲 : bug label Aug 20, 2020
@aaronreidsmith
Copy link
Member

aaronreidsmith commented Aug 20, 2020

Seems related to #355. Please be sure to search our closed issues and fill out the entire issue template next time you open an issue!

A couple questions:

  • What version of pmdarima are you trying to import?
  • Are you using Conda?

If you are using Conda, stop. The release that is published to Conda is not official or supported by us; someone took the code for version 1.2.0 and published it themselves.

The only supported way to install pmdarima is pip install pmdarima. Give that a shot, and let us know if you still see that error.

To clarify, you can use pip in a Conda environment. Just don't use conda install -c saravji pmdarima.

@aaronreidsmith
Copy link
Member

Just realized your issue title indicates you are using Conda. Try pip and you should be good.

@ghost
Copy link
Author

ghost commented Aug 20, 2020

in the environment of my conda I opened terminal and typed pip install pmdarima it was successfully installed but same problem. the version my Pmdarima is 1.2.0 in conda

@aaronreidsmith
Copy link
Member

Did you uninstall the conda one first? Try the following:

conda remove pmdarima
pip install pmdarima
python -c "import pmdarima; pmdarima.show_versions()"

@ghost
Copy link
Author

ghost commented Aug 20, 2020

God... thanks it working now!

@harmbuisman
Copy link

Seems related to #355. Please be sure to search our closed issues and fill out the entire issue template next time you open an issue!

A couple questions:

  • What version of pmdarima are you trying to import?
  • Are you using Conda?

If you are using Conda, stop. The release that is published to Conda is not official or supported by us; someone took the code for version 1.2.0 and published it themselves.

The only supported way to install pmdarima is pip install pmdarima. Give that a shot, and let us know if you still see that error.

To clarify, you can use pip in a Conda environment. Just don't use conda install -c saravji pmdarima.

I ran into the same problem as the topic starter. Any chance you can release the latest version there as well or have the unofficial one removed?

@aaronreidsmith
Copy link
Member

Any chance you can release the latest version there as well

We have requested help on #326, but none of us are conda experts and cannot get it working properly. If you, or someone you know, has experience with conda, we are more than happy to accept PRs both here and in pmdarima-conda.

or have the unofficial one removed?

We cannot remove the unofficial version as the publisher is not affiliated with us; it is within his rights as part of our license to republish.

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

No branches or pull requests

2 participants