After upgrading to Numpy 1.8.2, ImportError: cannot import name multiarray

こ雲淡風輕ζ 提交于 2020-01-03 21:01:56

问题


I just upgraded to Numpy 1.8.2 on my 64-bit Windows machine using Anaconda's Spyder. I used the command:

conda update numpy

It installed it. Before that I had numpy 1.7.1, and I also have a 32-bit version of anaconda spyder in another path, but I 've taken it out of the system PATH variable.

Now the issue is that as soon as I try to run any code, I get an error that ends in:

    from . import multiarray
ImportError: cannot import name multiarray

One of the first imports in ___init___.py for numpy is:

from . import multiarray

But in C:\Users\app\Anaconda\Lib\site-packages\numpy\core I can see the following two files:

multiarray.pyd
multiarray_tests.pyd

What should I do to get this working? Is re-installing really the only way to get it working?

来源:https://stackoverflow.com/questions/25701821/after-upgrading-to-numpy-1-8-2-importerror-cannot-import-name-multiarray

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!