正常情况是,1 个tensorflow,1个tensorboard,1个tensorflow-estimator,保证这样就行。
解决方案: 环境里安装了多个版本的tensorboard和tensorflow,按照提示卸载并重新安装: pip uninstall tb-nightly tensorboard tensorflow tensorflow-estimator
说明 要求Anaconda3 要求python版本3.6 里面主要包括tensorflow2.1.0, tensorflow-gpu 2.1.0, tensorflow-estimator 2.1.0, 2.1.0 gpu_py36h55f5790_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/mai tensorflow-estimator
2.3.0 requires scipy==1.4.1, but you have scipy 1.7.3 which is incompatible. tensorflow 2.3.0 requires tensorflow-estimator <2.4.0,>=2.3.0, but you have tensorflow-estimator 2.5.0 which is incompatible. tensorflow-gpu 2.3.0 requires scipy 和 tensorflow-estimator 版本与 TensorFlow 2.3.0 和 TensorFlow GPU 2.3.0 不兼容,可以尝试如下两种方法: 升级 tensorFlow 和 tensorflow-gpu 版本 降级安装 sciPy 和 tensorflow-estimator 若选择第1种方法,可能会导致其它库的版本兼容性问题:如果有其他库依赖于 tensorflow-estimator
packages/4e/35/11749bf99b2d4e3cceb4d55ca22590b0d7c2c62b9de38ac4a4a7f4687421/gast-0.2.2.tar.gz Collecting tensorflow-estimator none-any.whl (87kB) 100% |████████████████████████████████| 92kB 5.1MB/s Collecting mock>=2.0.0 (from tensorflow-estimator collected packages: keras-preprocessing, protobuf, markdown, grpcio, absl-py, tensorboard, gast, mock, tensorflow-estimator
5.1.2 scikit-learn==0.21.3 scipy==1.3.1 six==1.12.0 sklearn==0.0 tensorboard==1.14.0 tensorflow==1.14.0 tensorflow-estimator
pypi_0 pypi tensorflow-base 1.12.0 mkl_py36h81393da_0 defaults tensorflow-estimator
############################################################################################ | 100% tensorflow-estimator
=1.0.8 Keras-Preprocessing==1.1.0 matplotlib==3.1.1 numpy==1.17.2 pandas==0.25.1 tensorflow==1.14.0 tensorflow-estimator
py37h33f27b4_0 - tensorflow=1.13.1=gpu_py37h83e5d6a_0 - tensorflow-base=1.13.1=gpu_py37h871c8ca_0 - tensorflow-estimator
2.0.0 pyhb38c66f_1 tensorflow 2.0.0 mkl_py37hda344b4_0 tensorflow-estimator 2.0.0 pyhb38c66f_1 tensorflow 2.0.0 mkl_py37hda344b4_0 tensorflow-estimator ########################################################################################### | 100% tensorflow-estimator
astor, numpy, h5py, keras-applications, markdown, absl-py, werkzeug, protobuf, grpcio, tensorboard, tensorflow-estimator
pyzmq==17.1.2 qtconsole==4.4.3 Send2Trash==1.5.0 six==1.12.0 tensorboard==1.13.1 tensorflow==1.13.1 tensorflow-estimator
pyzmq==17.1.2 qtconsole==4.4.3 Send2Trash==1.5.0 six==1.12.0 tensorboard==1.13.1 tensorflow==1.13.1 tensorflow-estimator
system-service 0.3 systemd-python 234 tensorboard 1.13.1 tensorflow-estimator
Namely: pip uninstall tb-nightly tensorboard tensorflow-estimator tensorflow-estimator-2.0-preview