安装Tensorflow、Keras框架
- 更换清华源
cmd或powerShell输入:
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- 安装tensorflow
pip install tensorflow-gpu==1.15.0
- 安装Keras
pip install keras==2.2.5
- 安装其他库:
pip install numpy scipy pillow cython matplotlib scikit-image opencv-python h5py imgaug jupyterlab
- 测试tensorflow及keras环境:
使用cmd进入python交互式环境,输入import keras,有如下显示则安装成功