1. tf 版本过高,通过加上compat.v1得到修改
2.AttributeError: module 'tensorflow' has no attribute 'placeholder'
把所有用:
import tensorflow as tf
改成:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
继续报错。。。
3.很烦躁,觉得没有找到问题的实质,现在打算连接远程服务器用docker里面的tf1.几的版本尝试 一下。
连不上了。。。试图打开管道不存在。。。
照着来了一遍还是不行
4.尝试一种很不想的办法,卸载2.6版本的Tf,重新装一个1.15版本的。。。
(实际上可以用本地docker,但是docker打不开,错误也很神奇,晕死。)
服了,卸载了装不了旧的
RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.
· 额,大概意思是官方把pip search这个功能关了,因为用的人太多了。。。
5.Tensorflow 1.15 doesn't exists within pip install · Issue #34302 · tensorflow/tensorflow · GitHub
找到了一个官方github 的issue,看了一圈也没能解决问题。(心态要崩了)