当前位置:网站首页>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键执行
边栏推荐
- 中信证券网上开户安全吗 开户收费吗
- 缓存穿透、缓存击穿、缓存雪崩分别是什么
- 【HCIA持续更新】WLAN工作流程概述
- 整理混乱的头文件,我用include what you use
- Congratulations to Mr. Zhang Pengfei, chief data scientist of artefact, for winning the campaign Asia tech MVP 2022
- VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
- Is it safe for CITIC Securities to open an account online? Is the account opening fee charged
- 斑马识别成狗,AI犯错的原因被斯坦福找到了丨开源
- wuzhicms代码审计
- 51 single chip microcomputer temperature alarm based on WiFi control
猜你喜欢

被PMP考试“折磨”出来的考试心得,值得你一览

leetcode:421. 数组中两个数的最大异或值

Go micro tutorial - Chapter 2 go micro V3 using gin and etcd

建筑建材行业经销商协同系统解决方案:赋能企业构建核心竞争力

第十八届IET交直流输电国际会议(ACDC2022)于线上成功举办

整理混乱的头文件,我用include what you use

The 18th IET AC / DC transmission International Conference (acdc2022) was successfully held online

Internet addiction changes brain structure: language function is affected, making people unable to speak neatly

Which domestic cloud management platform manufacturer is good in 2022? Why?

PingCode 性能测试之负载测试实践
随机推荐
中信证券网上开户安全吗 开户收费吗
World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
51 single chip microcomputer temperature alarm based on WiFi control
一加10 Pro和iPhone 13怎么选?
Is it safe to open an account online
超大规模数仓集群在大型商业银行的落地实践
码农版隐秘的角落:作为开发者最讨厌的5件
PyTorch深度学习快速入门教程
补能的争议路线:快充会走向大一统吗?
To sort out messy header files, I use include what you use
【测试开发】软件测试——基础篇
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
What is low code development?
Solve the El input input box For number number input problem, this method can also be used to replace the problem of removing the arrow after type= "number"
wuzhicms代码审计
[Huawei HCIA continuous update] SDN and FVC
聊聊异步编程的 7 种实现方式
Smart Logistics Park supply chain management system solution: digital intelligent supply chain enables a new supply chain model for the logistics transportation industry
第十八届IET交直流输电国际会议(ACDC2022)于线上成功举办
如何实现一个延时队列 ?