当前位置:网站首页>Pytoch environment construction
Pytoch environment construction
2022-07-21 19:12:00 【Zhangtutu】
1. Create an environment
Start by opening Anaconda Command prompt line , Open Anaconda Prompt,
Front display (base) Indicates that you have entered Anaconda The basic environment , Then we type
conda create -n pytorch1_11 python=3.7
among pytorch1_11 Is the name of the environment we created
python=3.7 Is what we want to use python Version of
We type in y Go to the next step .
At this time, the environment has been created successfully , We can type in conda activate pytorch1_11 Activate the environment .
At this point has entered pytorch Environment , We can type in pip list Check which packages are available in the environment .
install Pytorch
First of all to enter Pytorch Official website
Select the command line corresponding to your version and enter
Package: Indicates how the package is installed , commonly window Next use Conda Can ,Linux Under the system, you can consider choosing pip.
Here is cuda Version of ,cuda The version must correspond to the model of the graphics card ( Some graphics cards do not support cuda), If there is no graphics card or only integrated display , Just choose CPU that will do .
In the task manager , See the specific... In the performance bar GPU model . At the same time, ensure that the driver version of the graphics card corresponds to , It is best to upgrade the graphics card driver to the highest level before installation .
We will copy the installation instructions , Input into the just prepared environment
All the way down, the installation was successful .
Finally, if you want to check whether the installation is successful , You can enter... In the command line window python Get into python Command line , And then type :
import python
torch.cuda.is_available()
If the display Ture, It proves success .
边栏推荐
- 【LeetCode】1260. 二维网格迁移
- Huffman tree and Huffman coding test points
- Small exercise of batch replacement with VIM regular expression
- 软件测试面试题:软件测试分为几个阶段 各阶段的测试策略和要求是什么?
- C语言进阶——静态通讯录
- 目前最畅销的 10 个 NFT
- rk3128扬声器spk 和耳机hp声音大小调试
- 5、自定义全局AuthenticationManager
- [performance optimization] MySQL common slow query analysis tools
- Ardunio开发——土壤传感器的使用
猜你喜欢
若依框架之swagger接口文档
SuperMap iClient for OpenLayers图层组控制实现方法
LogMAP: logic based and scalable ontology matching
Ardunio开发——土壤传感器的使用
PostgreSQL source code (64) query execution - sub module executor (2) data structure and execution process before execution
V853 development board hardware data - risc-v core e907 user manual
[performance optimization] MySQL common slow query analysis tools
nexus 5X刷机并使用Magisk获取root权限
Protocole TCP
EasyExcel如何在项目中导出文件
随机推荐
解决跨域问题的8种方案(最新最全)
NFS服务配置
Ardunio development - use of soil sensors
El table supports paging multiple selection
PostgreSQL source code (64) query execution - sub module executor (2) data structure and execution process before execution
Alibaba cloud released the industry's first "best practice map of live video technology"!
Uniapp dynamically sets the height of the placeholder (in conjunction with the createselectorquery method)
软件测试面试题:说说你对集成测试中自顶向下集成和自底向上集成两个策略的理解,要谈出它们各自的优缺点和主要适应于哪种类型测试?
What is the difference between session and cookies?
[QT] correct method of character encoding conversion of log path
Rk3128 speaker SPK and headset HP sound size debugging
FTP服務配置
swift和OC对比,Swift的核心思想:面向协议编程
Usage of readshow database + National Library Reference Alliance
emuelec开发笔记
kubernetes的这几种存储卷,别再傻傻分不清了
ClickHouse表引擎
数字藏品如何实现版权保护
Manual implementation of solving single source shortest path
rk3128扬声器spk 和耳机hp声音大小调试