原因:在更新tf2之后,很多代码还是在tf1下,因此默认tf版本为tf2,会导致部分函数无法调用。因此需要指定安装tf1版本
解决:pip3 install tensorflow==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
参考:https://blog.youkuaiyun.com/qq_39266065/article/details/106309424
原因:在更新tf2之后,很多代码还是在tf1下,因此默认tf版本为tf2,会导致部分函数无法调用。因此需要指定安装tf1版本
解决:pip3 install tensorflow==1.14.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
参考:https://blog.youkuaiyun.com/qq_39266065/article/details/106309424