使用tensorflow1.15运行,出现以下错误,
解决办法:
发现是安装1.15.0时系统自动安装的tensorflow-estimator是2.5.0版(图2)
卸载2.5版:pip uninstall tensorflow-estimator
重新安装1.15版:conda install tensorflow-estimator==1.15.1 或pip install tensorflow-estimator==1.15.1 (我是用canda安装的,用pip没成功,提示错误,ValueError: check_hostname requires server_hostname,搜了下这个错误需要关闭代理,但是我是要靠代理带能联网又不能关...)
问题解决。
注:安装1.15.1原因是没找到1.15.0版,想去官网下载手动安装也只搜到tensorflow-cpu-estimator 1.15.1,Search results · PyPI