当前位置:网站首页>Anaconda creates a virtual environment and installs pytorch
Anaconda creates a virtual environment and installs pytorch
2022-07-05 12:25:00 【Nat_ Jst】
- install Anaconda
Official website Download and install - Creating a virtual environment
open Anaconda Prompt( Start menu )
Creating a virtual environment , The environment name is pytorch( Can start at will )
(1) Create an environment pytorch, Use Python The version is 3.7.conda create -n pytorch python=3.7
after , Pop up the prompt , Input y, You can install .
(2) Check whether the environment is installed successfully conda info --envs
You can see base and pytorch Two environments
(3) Activate the virtual environment pytorch:activate pytorch
install pytorch
https://pytorch.org/get-started/locally/
(1) Enter the installation commandconda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
(2) Paste the copied code into the command line format , Pop up the prompt , Input y, To complete the installation , Show “done”.
Get into python:python
test numpy:import numpy
test pytorch:import torch
If all the above steps are OK , Then the installation is successful .
边栏推荐
- 互联网公司实习岗位选择与简易版职业发展规划
- mysql拆分字符串做条件查询
- MVVM framework part I lifecycle
- Xi IO flow
- Video networkState 属性
- Understanding the architecture type of mobile CPU
- Learn memory management of JVM 01 - first memory
- ZABBIX ODBC database monitoring
- Hexadecimal conversion summary
- Wireless WiFi learning 8-channel transmitting remote control module
猜你喜欢

Error modulenotfounderror: no module named 'cv2 aruco‘

Interviewer: is acid fully guaranteed for redis transactions?
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases

Linux Installation and deployment lamp (apache+mysql+php)

Learn memory management of JVM 01 - first memory

Tabbar configuration at the bottom of wechat applet

嵌入式软件架构设计-消息交互
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
[email protected] (using password"/>Solve the error 1045 of Navicat creating local connection -access denied for user [email protected] (using password
Two minutes will take you to quickly master the project structure, resources, dependencies and localization of flutter
随机推荐
MySQL index - extended data
7月华清学习-1
Semantic segmentation experiment: UNET network /msrc2 dataset
[hdu 2096] Xiaoming a+b
Flutter2 heavy release supports web and desktop applications
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
Leetcode-1. Sum of two numbers (Application of hash table)
ZABBIX monitors mongodb (template and deployment operations)
What is the difference between canvas and SVG?
II. Data type
Solution to order timeout unpaid
byte2String、string2Byte
MySQL log module of InnoDB engine
ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
The evolution of mobile cross platform technology
Matlab label2idx function (convert the label matrix into a cell array with linear index)
MySQL transaction
Swift - enables textview to be highly adaptive
嵌入式软件架构设计-消息交互