经常出现numpy和python版本对应不上的问题

问题重述:

Please note and check the following:

* The Python version is: Python3.8 from "C:\Users\xulinfei\anaconda3\envs\graduation_tensor1\python.exe"
* The NumPy version is: "1.20.1"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。

 

解决方法:

  • ①直接升级numpy版本

conda upgrade numpy

  实践证明,毫无暖用

 

  • ②尝试更改到对应版本,python3.8对应numpy1.18.2

pip uninstall numpy
pip install numpy==1.18.2

刚开始是在pycharm终端里面运行,毫无暖用  

然后在anaconda prompt里面运行,成功解决问题

但是随之而来的是其他的matplotlib函数包和numpy版本不兼容问题

(PS:最后亲测,电脑关机后重启,成功解决,没有报错,这就是玄学)

 

posted @ 2022-05-07 22:53  为明  阅读(12698)  评论(0编辑  收藏  举报