赞
踩
错误原因:
ImportError: DLL load failed: 找不到指定的模块。
ImportError: numpy.core.multiarray failed to import
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 967, in _find_and_load
SystemError: PyEval_EvalFrameEx returned a result with an error set
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
2019-10-17 15:42:18.350842: F tensorflow/python/lib/core/bfloat16.cc:675] Check failed: PyBfloat16_Type.tp_base != nullptr
出错原因:
numpy版本需要更新
pip install numpy --upgrade
但是,显示如下,已是最新版本
Requirement already up-to-date: numpy in d:\anaconda\envs\tensorflow\lib\site-packages (1.17.2)
解决方法:先卸掉已有的numpy再更新,问题解决!
pip uninstall numpy
python -m pip install --upgrade numpy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。