当前位置:   article > 正文

No modules named ‘tensorflow.compat.v2‘_no module named compat.v2

no module named compat.v2

出现这个问题就说明。tensorflow的版本有问题,

tf.compat.v2 module was added in 1.14. Upgrade to 1.14 , 1.15, or 2.0
and this will work fine.

!pip install tensorflow==1.15
import tensorflow.compat.v2 as tf
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/899372
推荐阅读
相关标签
  

闽ICP备14008679号