当前位置:网站首页>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键执行
边栏推荐
- Spark 中的 Rebalance 操作以及与Repartition操作的区别
- Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
- Hidden corners of coder Edition: five things that developers hate most
- Electronic pet dog - what is the internal structure?
- R语言plotly可视化:plotly可视化互相重叠的直方图(historgram)、并在直方图的顶部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
- MD5加密的两种方式
- The test experience "tortured" by the PMP test is worth your review
- [unity ugui] scrollrect dynamically scales the grid size and automatically locates the middle grid
- La 18e Conférence internationale de l'IET sur le transport d'électricité en courant alternatif et en courant continu (acdc2022) s'est tenue avec succès en ligne.
- 第十八届IET交直流输电国际会议(ACDC2022)于线上成功举办
猜你喜欢
Ble HCI flow control mechanism
2022年国内云管平台厂商哪家好?为什么?
ble HCI 流控机制
超大规模数仓集群在大型商业银行的落地实践
Go micro tutorial - Chapter 2 go micro V3 using gin and etcd
Solution of commercial supply chain coordination system in the mineral industry: build a digital intelligent supply chain platform to ensure the safe supply of mineral resources
完美融入 Win11 风格,微软全新 OneDrive 客户端抢先看
NFT流动性市场安全问题频发—NFT交易平台Quixotic被黑事件分析
Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
Developers, MySQL column finish, help you easily from installation to entry
随机推荐
Two methods of MD5 encryption
Which domestic cloud management platform manufacturer is good in 2022? Why?
VMware Tools和open-vm-tools的安装与使用:解决虚拟机不全屏和无法传输文件的问题
第十八届IET交直流输电国际会议(ACDC2022)于线上成功举办
[unity ugui] scrollrect dynamically scales the grid size and automatically locates the middle grid
Difference between redis' memory obsolescence strategy and expiration deletion strategy
Congratulations to Mr. Zhang Pengfei, chief data scientist of artefact, for winning the campaign Asia tech MVP 2022
网页游戏引擎
Is it safe for CITIC Securities to open an account online? Is the account opening fee charged
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
Internet addiction changes brain structure: language function is affected, making people unable to speak neatly
【HCIA持续更新】广域网技术
DataKit——真正的统一可观测性 Agent
Cocoscreator event dispatch use
NFT流动性市场安全问题频发—NFT交易平台Quixotic被黑事件分析
解读数据安全治理能力评估框架2.0,第四批DSG评估征集中
How to implement a delay queue?
防火墙基础透明模式部署和双机热备
detectron2安装方法
ARTS_20220628