pytorch 中常见的numpy版本问题报错,本人深受困扰
以下三个问题都是numpy 包版本的问题(本人遇到:2,3):
1:UserWarning: Failed to initialize NumPy: No module named ‘numpy.core._multiarray_umath‘
2: RuntimeError: implement_array_function method already has a docstring
3:TypeError: float() argument must be a string or a number, not 'NoValueType’
本人环境 python 3.7.5
以下包容易出现冲突
# 安装先后,之后缺啥装啥
numpy-1.19.5+mkl-cp37-cp37m-win_amd64.whl (重要+MKL)
scipy== 1.5.2
matplotlib==3.2.0( 高了) ---> 改为 matplotlib==3.0.3
scikit-learn 0.24.1
scikit-image 0.17.2 (亲测0.18.1会报上述的错误)
(必须使用numpy+MKL的包)版本自选
下载链接:https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
运行 skimage 报错ImportError: DLL load failed:找不到指定模块见如下链接
参考链接:https://blog.csdn.net/fanlily913/article/details/120130357