安装anaconda pip install tensorflow 出现numpy.core.umath failed to import 问题。看着这个报错大概猜想是numpy 版本问题,人品就是这样,一段时人品不好,什么软件都给你出bug,感慨一下。为了一点小问题,卸载重装浪费两小时。

pip install -U numpy

执行这句话就可以了,简单测试一下

import tensorflow as tf
x1=tf.constant([4.0,5.0])
x2=tf.constant([1.0,5.0])
y=x1+x2
with tf.Session() as sess:
    result=sess.run(y)
    print(result)

安装anaconda pip install tensorflow 出现numpy.core.umath failed to import 问题

相关文章:

  • 2021-08-06
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-02-08
  • 2021-06-12
  • 2021-10-12
猜你喜欢
  • 2021-04-15
  • 2022-02-08
  • 2022-12-23
  • 2021-05-19
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案