tensorflow版本不对卸载重新安装 pip uninstall tensorflow 我之前是2.0.0的版本,然后重装的1.5.0,没有再报这个错误 pip install tensorflow==1.5.0