keras安裝教程
2023-04-04 15:27 作者:wanmay2018 | 我要投稿
keras安裝教程
第一步:安裝anaconda3(版本為Anaconda3-2019.03-Windows-x86_64.exe),里面的python版本是3.7.3


2.第二步:
2.1 在Anaconda ?Prompt中創(chuàng)建虛擬環(huán)境:
conda create --name tensorflow python=3.6


2.2激活虛擬環(huán)境:(注意:激活后base會(huì)進(jìn)入tensorflow)
conda activate tensorflow

3.安裝tensorflow:
pip install tensorflow==1.15.0 ?-i https://pypi.tuna.tsinghua.edu.cn/simple/

4.安裝karas:
pip install keras==2.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/

5.安裝tensorflow環(huán)境下的 jupyter notebook:
conda install jupyter notebook

6.安裝一些配套庫,我的D盤里面有個(gè)requirements.txt文件,里面有要安裝的庫。
D:\requirements.txt里面有

pip install -r D:\requirements.txt ?-i https://pypi.tuna.tsinghua.edu.cn/simple/

7.使用jupyter notebook:


標(biāo)簽: