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

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

    You can try this, I solved my problem after update package.

    pip install --upgrade numpy
    

    if nothing changed, you can upgrade pip first, than upgrade numpy.

    python -m pip install --upgrade pip 
    

    (if you want to update all package, please refer to this page:How to upgrade all Python packages with pip?)

    Or check the python version is fit your environment or not. Please make sure you remove old version totally after you reinstall new version.

提交回复
热议问题