报错信息:
使用tensorflow时出现报错:
AttributeError: module 'tensorflow' has no attribute 'reset_default_graph'
解决方法:
python版本需小于3.7
tensorflow版本需小于2.0
用conda create -n [环境名称] python=3.8(python的版本)
在conda环境中创建虚拟环境tensorflow,python版本为3.6:
conda create -n tensorflow python=3.6
安装tensorflow库:
conda install tensorflow=1.11.0