本文链接:https://www.cnblogs.com/tujia/p/14696042.html
2021.05.11 补充:win10 anaconda cuda11.1 安装 tensorlfow-gpu 环境 - Tiac - 博客园 (cnblogs.com)
一、安装 anaconda
https://www.anaconda.com/products/individual
注1:选择适合自己的版本下载安装即可
注2:为了不必要的麻烦,建议先卸载系统已安装的python,然后使用anaconda默认环境的python做为系统默认的python
二、安装 tensorflow-gpu
安装好 anaconda 后,win+q 搜索 ana ,选择打开 Anaconda Navigator
注:点击 Environments ,然后再点 Create ,创建一个新环境(tensorflow)
三、修改 anaconda 源
打开 C盘 > 用户 > {用户名},例如:C:UsersTiac
创建或修改 .condarc 文件并保存,内容参考 https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
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
四、安装 tensorflow-gpu
注:先搜索 tensorflow-gpu,点击勾选,然后再点击右下角的 Apply 按钮安装
五、同样的方法,安装 ipykernel
六、安装 jupyter notebook
参考 jupyter 官方文档,用 conda 命令安装 jupyterlab 或 notebook
https://jupyter.org/install.html
打开 Termainal,执行以下命令
conda install -c conda-forge jupyterlab conda install -c conda-forge notebook
七、运行 jupyter notebook 及测试
注:这里显示的可用GPU是0,改天再调了~
本文链接:https://www.cnblogs.com/tujia/p/14696042.html
完。