当前位置:   article > 正文

Tensorflow遇到的问题_onmessage error occurred during error handling, gi

onmessage error occurred during error handling, give up!

import tensorflow as tf时出错

错误原因:

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

出错原因:
numpy版本需要更新

pip install numpy --upgrade
  • 1

但是,显示如下,已是最新版本

Requirement already up-to-date: numpy in d:\anaconda\envs\tensorflow\lib\site-packages (1.17.2)
  • 1

解决方法:先卸掉已有的numpy再更新,问题解决!

pip uninstall numpy
python -m pip install --upgrade numpy
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/199244
推荐阅读
相关标签
  

闽ICP备14008679号