I am using sklearn and ran into this issue:
File "C:\python\lib\sklearn\__init__.py", line 74, in <module>
from .base import clone
File "C:\python\lib\sklearn\base.py", line 20, in <module>
from .utils import _IS_32BIT
File "C:\python\lib\sklearn\utils\__init__.py", line 20, in <module>
from .murmurhash import murmurhash3_32
File "__init__.pxd", line 918, in init sklearn.utils.murmurhash
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
how can i resolve this error?
So i got the solution, i did update the numpy library by using pip install numpy --upgrade , this updated the numpy but when i go in python it was pointing to the old version, so i simply remove previous numpy library from python/lib & python/lib/site-packages and then install it again. Now it's working!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.