OSError: [WinError 193] %1 is not a valid Win32 application - when trying to import numpy

后端 未结 4 1474
一整个雨季
一整个雨季 2021-01-14 21:02

I can install numpy or pandas, but I can\'t import them in cmd, jupyter notebook or sublime text. (However, I can install and import them in Pycharm).

I\'ve already

4条回答
  •  情话喂你
    2021-01-14 21:09

    Reinstalling numpy did not work for me.

    I had the same issue and noticed multiple paths pointing to numpy in the error message. E.g.

    C:\Users\USERNAME\AppData\Roaming\Python\Python37\*
    C:\Users\USERNAME\AppData\Local\Programs\Python\Python37-32\*
    

    I deleted the C:\Users\USERNAME\AppData\Roaming\Python\Python37\* folder because that was left behind by a previous Python which I had uninstalled. I would not recommend deleting anything until you are certain you won't break other things, so maybe send it to the recycle bin and restore if it does not fix the issue for you.

提交回复
热议问题