当前位置:网站首页>Pytorch深度学习之环境搭建
Pytorch深度学习之环境搭建
2022-07-04 15:43:00 【Wu_Candy】
Windows环境下Anaconda3的安装步骤如下:
pytorch官网:
https://pytorch.org/ https://pytorch.org/get-started/locally/
1、先自行在网上下载如下截图所示的Anaconda3*.exe文件,自行双击进行下一步安装。
2、安装成功后在下图所示中的所有程序中找到Anaconda Prompt打开进入命令行窗口
3、打开Anaconda Prompt后,依次执行以下命令
(1)、conda install pytorch torchvision -c pytorch
(2)、说明:速度慢,可以修改清华Mirror
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ 修改Conda源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes
修改Conda源的channels命令
conda config --remove channels 网址
(3)、conda install pytorch torchvision #不要带-c
(4)、安装jupty开发工具:
conda install jupyter
如果没有报错,恭喜你环境已经搭建成功,接下来在所有程序中找到Jupyter Notebook
4、打开Jupyter Notebook进入本地环境代码编辑运行界面,启动过程中会先打开如下图所示的窗口:
再会自动打开浏览器,网址为:http://localhost:8888/tree,如下截图所示:
5、在jupyter中新建项目代码笔记,开始编写代码脚本
step1:点击New,选择Python3
step2:进入代码脚本编辑页面
step3、运行代码,使用Control + Enter键执行
边栏推荐
- CANN算子:利用迭代器高效实现Tensor数据切割分块处理
- How to implement a delay queue?
- PingCode 性能测试之负载测试实践
- 【云原生】服务网格是什么“格”?
- 【HCIA持续更新】网络管理与运维
- Smart Logistics Park supply chain management system solution: digital intelligent supply chain enables a new supply chain model for the logistics transportation industry
- Solution of dealer collaboration system in building materials industry: empowering enterprises to build core competitiveness
- Image retrieval
- ble HCI 流控机制
- 一文掌握数仓中auto analyze的使用
猜你喜欢

【Go ~ 0到1 】 第六天 文件的读写与创建

Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue

解读数据安全治理能力评估框架2.0,第四批DSG评估征集中

聊聊异步编程的 7 种实现方式

整理混乱的头文件,我用include what you use
![[HCIA continuous update] overview of WLAN workflow](/img/0a/b3986307589a9f7379fe1dd707b9f8.png)
[HCIA continuous update] overview of WLAN workflow

Using win10 scheduling task program to automatically run jar package at fixed time

CocosCreator事件派发使用

上网成瘾改变大脑结构:语言功能受影响,让人话都说不利索

With an annual income of more than 8 million, he has five full-time jobs. He still has time to play games
随机推荐
《吐血整理》保姆级系列教程-玩转Fiddler抓包教程(2)-初识Fiddler让你理性认识一下
Go micro tutorial - Chapter 2 go micro V3 using gin and etcd
PingCode 性能测试之负载测试实践
CocosCreator事件派發使用
容器环境minor gc异常频繁分析
第十八届IET交直流输电国际会议(ACDC2022)于线上成功举办
电子宠物小狗-内部结构是什么?
什么是低代码开发?
CocosCreator事件派发使用
ble HCI 流控机制
ARTS_20220628
雨量预警广播自动化数据平台BWII 型广播预警监测仪
Datakit -- the real unified observability agent
【HCIA持续更新】WLAN概述与基本概念
[Huawei HCIA continuous update] SDN and FVC
解决el-input输入框.number数字输入问题,去掉type=“number“后面箭头问题也可以用这种方法代替
智捷云——元宇宙综合解决方案服务商
To sort out messy header files, I use include what you use
detectron2安装方法
2022PMP考试基本情况详情了解