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

Likely an import error? #1

Closed
makew0rld opened this issue Feb 12, 2017 · 3 comments
Closed

Likely an import error? #1

makew0rld opened this issue Feb 12, 2017 · 3 comments

Comments

@makew0rld
Copy link

makew0rld commented Feb 12, 2017

When trying to install scikit-plot with pip3 I got this error:

Collecting scikit-plot
  Downloading scikit-plot-0.1.dev3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/9g/pv05gc7d5zvb2n_pr_0tmn8r0000gn/T/pip-build-6c8p8iqs/scikit-plot/setup.py", line 9, in <module>
        import scikitplot
      File "/private/var/folders/9g/pv05gc7d5zvb2n_pr_0tmn8r0000gn/T/pip-build-6c8p8iqs/scikit-plot/scikitplot/__init__.py", line 5, in <module>
        from scikitplot.classifiers import classifier_factory
      File "/private/var/folders/9g/pv05gc7d5zvb2n_pr_0tmn8r0000gn/T/pip-build-6c8p8iqs/scikit-plot/scikitplot/classifiers.py", line 9, in <module>
        from sklearn.model_selection import learning_curve
    ModuleNotFoundError: No module named 'sklearn'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9g/pv05gc7d5zvb2n_pr_0tmn8r0000gn/T/pip-build-6c8p8iqs/scikit-plot/

My guess is just that classifiers.py just doesn't import sklearn.

@reiinakano
Copy link
Owner

reiinakano commented Feb 13, 2017

Hi Cole, that's weird. I've tested it on a clean install of python 3 and installation works just fine so long as the dependencies (scikit-learn, matplotlib) are resolved. Are you sure scikit-learn>=0.18 is installed on the system?

Also, please note that I haven't had an official release yet and there's likely to be a handful of bugs in the package. Thanks a lot for taking the time to try out the pre-release version of scikit-plot! :)

@makew0rld
Copy link
Author

Sorry, you're right. I thought I had scikit-learn installed but I didn't. Thanks!

@reiinakano
Copy link
Owner

No problem, glad you resolved it!

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