报错
ERROR: keras 2.2.0 has requirement keras-applications==1.0.2, but you'll have keras-applications 1.0.8 which is incompatible.
ERROR: keras 2.2.0 has requirement keras-preprocessing==1.0.1, but you'll have keras-preprocessing 1.1.2 which is incompatible.
Installing collected packages: wrapt, keras-preprocessing, keras-applications, tensorflow
Attempting uninstall: wrapt
Found existing installation: wrapt 1.10.11
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
①keras问题
已存在keras2.2.0版本,但是与我下载的tensorflow版本不兼容,所以要降级。
pip uninstall keras
防止超时,使用镜像下载:pip install keras==2.1.6 -i https://pypi.tuna.tsinghua.edu.cn/simple/(不下载也行,tensorflow里面有)
②wrapt问题
建议直接使用,又防止了超时又防止下载错误:
pip install wrapt==1.12.1 --ignore-installed -i https://mirrors.aliyun.com/pypi/simple/
最后再安装tensorflow
pip install tensorflow==2.0.0 -i https://mirrors.aliyun.com/pypi/simple/