已解决 AttributeError: module ‘tensorflow‘ has no attribute ‘random‘
日期: 2019-11-01 分类: 个人收藏 382次阅读
今天运行py文件的时候发现出了这个错,用了很多方法都没能解决,删了重装已经试了无数次了也不行,于是我把tensorflow的版本给升级了一下,解决问题了。(之前是1.10的我升到了1.12)
pip install tensorflow-gpu==1.12.0
升级tebsorflow或者也可以尝试重装(重装,我反正是不行)
除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog
精华推荐