-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Import error (numpy.ufunc) with python 2.7 and numpy 1.16.2 #3818
Comments
Looks like you need to upgrade on 2.7 to.0.14.2.
|
Thanks but 0.14.2 is what causes the problem. I was just showing that 0.12.2 is what works, and that is what I have installed now after 0.14.2 failed to work. I'll edit my post to remove that confusing info. |
I'll have to try 0.15dev and see if that makes any difference. |
Sorry, I didn't check properly: the error you are seeing is coming from dask. |
(I.e., you should first try to upgrade dask.) |
Brilliant! Was not aware dask was involved. Fixed by updating dask:
|
Python version: 2.7.15 I am getting the same error. Is there any other solution to this? I upgraded all three packages. |
please do not use sudo and pip at the same time. You very likely broke your system python installation :( That said, I don't think many system utilities use numpy, so you are likely safe. The installation instructions should be updated with a caution about this The contribution guide goes over how to create virtual environments
command, use
to install scikit-image in the virtual environment. |
I would try to see if you can install things in a virtual environment, if not, please open a new issue. I would strongly suggest to use conda for scientific stuff. |
Thanks for the advice. |
Description
Trying to
import skimage
causesAttributeError: 'numpy.ufunc' object has no attribute '__module__'
when using python 2.7, skimage 0.14.2, numpy 1.16.2 .Way to reproduce
Version information
pip2 install scikit-image==0.12.2
The text was updated successfully, but these errors were encountered: