解决Tensorflow、keras安装时出现的不兼容问题
1.创建名为tensorflow的环境,同时安装Python
conda create --name tensorflow python=3.6
2.激活环境
activate tensorflow
3.用镜像源安装tensorflow==1.15.0版本
pip install tensorflow==1.15.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/
或者
pip install tensorflow==1.15.0 -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
4.检查tensorflow是否成功安装
即成功安装tensorflow
5.接下来安装keras
pip install keras==2.1.5 -i https://pypi.tuna.tsinghua.edu.cn/simple/
conda install mingw libpython
6.检查keras是否成功安装
即成功安装keras