当前位置:网站首页>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 index (1)
- Solve the problem of cache and database double write data consistency
- Wireless WiFi learning 8-channel transmitting remote control module
- Semantic segmentation experiment: UNET network /msrc2 dataset
- ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
- 调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
- GPS數據格式轉換[通俗易懂]
- Application of a class of identities (vandermond convolution and hypergeometric functions)
- Take you two minutes to quickly master the route and navigation of flutter
- What is digital existence? Digital transformation starts with digital existence
猜你喜欢
Multi table operation - sub query
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
How to clear floating?
Third party payment interface design
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
7月华清学习-1
Redis's memory elimination mechanism, read this article is enough.
Get data from the database when using JMeter for database assertion
Master-slave mode of redis cluster
Redis highly available slice cluster
随机推荐
ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
MySQL data table operation DDL & data type
Video networkstate property
Basic operations of MySQL data table, addition, deletion and modification & DML
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
Instance + source code = see through 128 traps
Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
Hiengine: comparable to the local cloud native memory database engine
Video networkState 属性
【load dataset】
GPS數據格式轉換[通俗易懂]
MySQL storage engine
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
Experimental design - using stack to realize calculator
PXE startup configuration and principle
Two minutes will take you to quickly master the project structure, resources, dependencies and localization of flutter
Four operations and derivative operations of MATLAB polynomials
MySQL stored procedure
Design of music box based on assembly language
Hexadecimal conversion summary