-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ImportError with numpy 1.10.2 #6115
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
Comments
If you look carefully at your stacktrace this looks like a scipy problem, you should be able to reproduce it just using Try uninstalling + reinstalling scipy. |
Yes, as I mentioned reinstalling scipy with numpy 1.10.1 solves this. The issue is, why is this so and (because this seems to be an issue for scipy) should there be a hint to use sklearn with numpy 1.10.1 (or maybe i just haven't found it)? |
Sorry, I am going to try to be clearer:
The advice I was trying to give you was to try uninstalling + reinstalling scipy while keeping numpy 1.10.2, for example if you use conda (if you use pip replace conda by pip in the instructions):
|
Still the same problem with numpy 1.10.2 . |
Fair enough, it may be a genuine problem, hard to tell. I didn't manage to reproduce this in a fresh conda environment using For the record I am using conda and I don't seem to be affected by this issue. |
I get the same issue with numpy 1.10.4 + scipy 0.16.1 Downgrading numpy to 1.10.1 & reinstalling scipy solves this: $ sudo pip install numpy==1.10.1 |
To me, that looks very much like a binary incompatibility problem. In other terms, I believe that you are installing various packages from |
So are you compiling numpy and scipy from source? That is not really recommended (also per our documentation). I'd recommend using your package manager or conda instead. As the error is in scipy and not scikit-learn, I'm closing. |
I agree on this one. FWIW I tried to reproduce the problem on an ArchLinux distro within VirtualBox since both @AndreRoehrig and @sgargbugreporter seemed to have the problem on Arch. I wasn't able to reproduce the problem. |
btw try |
I had to also add |
I experienced the same issue and I made a report to scipy as it's definitely not the right place here. |
The issue goes away when numpy 1.10.1 is used (and scipy 0.17 reinstalled).
The text was updated successfully, but these errors were encountered: