1、安裝 anacondahtml
https://www.anaconda.com/products/individualide
注:選擇適合本身的版本下載安裝便可測試
2、安裝 tensorflow-gpuurl
安裝好 anaconda 後,win+q 搜索 ana ,選擇打開 Anaconda Navigatorhtm
注:點擊 Environments ,而後再點 Create ,建立一個新環境(tensorflow)blog
3、修改 anaconda 源ip
打開 C盤 > 用戶 > {用戶名},例如:C:\Users\Tiac文檔
建立或修改 .condarc 文件並保存,內容參考 https://mirror.tuna.tsinghua.edu.cn/help/anaconda/get
channels: - defaults show_channel_urls: true default_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 custom_channels: conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
4、安裝 tensorflow-gpuit
注:先搜索 tensorflow-gpu,點擊勾選,而後再點擊右下角的 Apply 按鈕安裝
5、一樣的方法,安裝 ipykernel
6、安裝 jupyter notebook
參考 jupyter 官方文檔,用 conda 命令安裝 jupyterlab 和 notebook
https://jupyter.org/install.html
打開 Termainal,執行如下命令
conda install -c conda-forge jupyterlab conda install -c conda-forge notebook
7、運行 jupyter notebook 及測試
注:這裏顯示的可用GPU是0,改天再調了~