1. source activate tensorfow("tensorflow是環境名稱")
2. 在環境下,鏡像安裝tensorflow :
pip install tensorflow==1.15.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
3. 檢查tensorflow對應的keras版本
https://docs.floydhub.com/guides/environments/
4.pip install keras==2.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
鏡像源可以換成 https://pypi.douban.com/simple or https://mirrors.aliyun.com/pypi/simple