Win10安装keras
安装 Anaconda
清华加速下载链接: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
我选择的版本是: Anaconda3-5.3.1-Windows-x86_64.exe
Anaconda3切换成国内源,我选择是清华源,打开cmd执行以下命令即可
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
Anaconda简单实用
-
创建虚拟环境: conda create -n python36 python=3.6 python36为环境名
-
进入与虚拟环境: conda activate python36
-
查看安装的库: conda list
-
安装库: conda install
安装 Keras+Tensorflow+Opencv
-
pip install tensorflow==2.0 -i https://pypi.doubanio.com/simple
-
pip install keras -i https://pypi.doubanio.com/simple
-
pip install opencv-python -i https://pypi.doubanio.com/simple
-
pip install opencv-contrib-python -i https://pypi.doubanio.com/simple