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

后端 未结 4 1472
一整个雨季
一整个雨季 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:29

    Okay, so this eventually helped me:

    1. I uninstalled only a numpy module with "pip uninstall numpy",

    2. I reinstalled it once again with "pip install numpy",

    3. I ran python, imported just one function from numpy (as I thought that maybe just some of the functions can't be imported, not entire numpy) - "from numpy import array"

    4. The function worked,so I tried to import the entire numpy once again and this time it succeeded without OSError.

提交回复
热议问题