当前位置:网站首页>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 .
边栏推荐
- Video networkState 属性
- Is investment and finance suitable for girls? What financial products can girls buy?
- Swift - enables textview to be highly adaptive
- Tabbar configuration at the bottom of wechat applet
- Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
- mysql拆分字符串做条件查询
- struct MySQL
- Deep discussion on the decoding of sent protocol
- 【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
- How can beginners learn flutter efficiently?
猜你喜欢
互联网公司实习岗位选择与简易版职业发展规划
7月华清学习-1
16 channel water lamp experiment based on Proteus (assembly language)
HiEngine:可媲美本地的云原生内存数据库引擎
Wireless WiFi learning 8-channel transmitting remote control module
Reinforcement learning - learning notes 3 | strategic learning
Two minutes will take you to quickly master the project structure, resources, dependencies and localization of flutter
Seven ways to achieve vertical centering
Multi table operation - sub query
Four operations and derivative operations of MATLAB polynomials
随机推荐
GPS數據格式轉換[通俗易懂]
Hiengine: comparable to the local cloud native memory database engine
Xi IO flow
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
MySQL transaction
你做自动化测试为什么总是失败?
MySQL installation, Windows version
Video networkstate property
Two minutes will take you to quickly master the project structure, resources, dependencies and localization of flutter
Solve the error 1045 of Navicat creating local connection -access denied for user [email protected] (using password
语义分割实验:Unet网络/MSRC2数据集
MySQL index (1)
互联网公司实习岗位选择与简易版职业发展规划
GPS data format conversion [easy to understand]
MySQL multi table operation
What is digital existence? Digital transformation starts with digital existence
Linux Installation and deployment lamp (apache+mysql+php)
Redis highly available slice cluster
Array cyclic shift problem
A new WiFi option for smart home -- the application of simplewifi in wireless smart home