0.前言
现在新开坑入门深度学习之图像处理的方向,基本从零开始,以此系列记录学习过程。
1. 安装ANACONDA
![](https://img-blog.csdnimg.cn/9f0789d2561e4a6c8d8c28aaf5984cc0.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2MDA1NDk4,size_16,color_FFFFFF,t_70)
1.1 安装PyChorm
![](https://img-blog.csdnimg.cn/5788f8be2a044c5cad7550507288f3e8.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2MDA1NDk4,size_16,color_FFFFFF,t_70)
1.2 在PyChorm中使用虚拟环境(2.3.4完成后)
![](https://img-blog.csdnimg.cn/3e42b55e4842455ebb7c783978fa736a.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2MDA1NDk4,size_16,color_FFFFFF,t_70)
![](https://img-blog.csdnimg.cn/5365eb8020d64dc0b40024d3d508152d.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2MDA1NDk4,size_16,color_FFFFFF,t_70)
![](https://img-blog.csdnimg.cn/3a50d8f41f2f46879f7e669470e79509.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2MDA1NDk4,size_16,color_FFFFFF,t_70)
2. 创建环境
![](https://img-blog.csdnimg.cn/198cf34f1bfb45c78ea820860c7a1708.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2MDA1NDk4,size_16,color_FFFFFF,t_70)
conda create -n pytorch python=3.6
conda info --envs
conda activate pytorch
3. 获取安装命令
![](https://img-blog.csdnimg.cn/ed66e211d407453699c2e59e61fbbb3b.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2MDA1NDk4,size_16,color_FFFFFF,t_70)
4. 验证安装结果
如下在环境中进入python
import torch运行后无报错
运行命令torch.cuda.is_available()得到True结果表示可以使用GPU
done
(pytorch) PS C:\Users\Dell> python
Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
True
>>>