Young87

当前位置:首页 >个人收藏

已解决 AttributeError: module ‘tensorflow‘ has no attribute ‘random‘

今天运行py文件的时候发现出了这个错,用了很多方法都没能解决,删了重装已经试了无数次了也不行,于是我把tensorflow的版本给升级了一下,解决问题了。(之前是1.10的我升到了1.12)

pip install tensorflow-gpu==1.12.0

升级tebsorflow或者也可以尝试重装(重装,我反正是不行) 

除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog

上一篇: 怎样用Python讨您的女朋友欢心(附源码)

下一篇: 车道线检测 ubuntu16.04 tusimple数据集 服务器训练车道线检测 lanenet-lane-detection

精华推荐