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

Help :( Fail to import sklearn-pandas @Windows 7 #49

Closed
DataTerminatorX opened this issue Jan 4, 2016 · 6 comments
Closed

Help :( Fail to import sklearn-pandas @Windows 7 #49

DataTerminatorX opened this issue Jan 4, 2016 · 6 comments
Assignees

Comments

@DataTerminatorX
Copy link

I've already successfully installed sklearn-pandas using "pip install scikitlearn-pandas" on windows's command line.

However, when I try "import sklearn-pandas", it reports error information as " Cannot import name _name_estimators". I've repeated uninstall and install many times but didn't work.

The whole error information is as below:

File "", line 1, in
File "C:\Python27\lib\site-packages\sklearn_pandas__init__.py", line 3, in
from .dataframe_mapper import DataFrameMapper # NOQA
File "C:\Python27\lib\site-packages\sklearn_pandas\dataframe_mapper.py", line
8, in
from .pipeline import make_transformer_pipeline
File "C:\Python27\lib\site-packages\sklearn_pandas\pipeline.py", line 2, in
from sklearn.pipeline import _name_estimators, Pipeline
ImportError: cannot import name _name_estimators

BTW, I've already pre-installed scikit-learn and pandas.

Many thx to anyone who could give me a hand

@dukebody
Copy link
Collaborator

dukebody commented Jan 6, 2016

Which version of scikit-learn are you using? Please post the output of the following command: pip freeze.

@DataTerminatorX
Copy link
Author

thx a lot for offering help!

versions are:
scikit-learn 0.14.1
pandas 0.17.0
scikit-pandas 1.1.0

@DataTerminatorX
Copy link
Author

I've solved it by updating scikit-learn and pandas. thx a lot !

@dukebody dukebody self-assigned this Jan 8, 2016
@dukebody
Copy link
Collaborator

dukebody commented Jan 8, 2016

Great! We have to update docs to state which scikit-learn version is required.

@dukebody
Copy link
Collaborator

dukebody commented Jan 9, 2016

According to my research, _name_estimators is present in scikit-learn>=0.15.0.

@dukebody
Copy link
Collaborator

dukebody commented Mar 6, 2016

Finally I opted for simply updating scikit-learn requirements in the package setup.py.

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