当前位置:网站首页>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 .
边栏推荐
- Solve the problem of cache and database double write data consistency
- 查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
- Simple production of wechat applet cloud development authorization login
- Application of a class of identities (vandermond convolution and hypergeometric functions)
- Array cyclic shift problem
- Implementing Yang Hui triangle with cyclic queue C language
- Swift - enables textview to be highly adaptive
- 2022年国内云管平台厂商哪家好?为什么?
- MySQL installation, Windows version
- POJ-2499 Binary Tree
猜你喜欢
调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击

Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises

MySQL splits strings for conditional queries

互联网公司实习岗位选择与简易版职业发展规划

How to clear floating?

嵌入式软件架构设计-消息交互

16 channel water lamp experiment based on Proteus (assembly language)

The evolution of mobile cross platform technology

Why learn harmonyos and how to get started quickly?

查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
随机推荐
Principle and performance analysis of lepton lossless compression
Intern position selection and simplified career development planning in Internet companies
ZABBIX agent2 monitors mongodb templates and configuration operations
Select drop-down box realizes three-level linkage of provinces and cities in China
你做自动化测试为什么总是失败?
How to recover the information server and how to recover the server data [easy to understand]
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
Deep discussion on the decoding of sent protocol
MySQL constraints
Linux安装部署LAMP(Apache+MySQL+PHP)
Understanding the architecture type of mobile CPU
One article tells the latest and complete learning materials of flutter
POJ-2499 Binary Tree
MySQL installation, Windows version
Redis highly available sentinel cluster
语义分割实验:Unet网络/MSRC2数据集
Understand redis persistence mechanism in one article
July Huaqing learning-1
How does MySQL execute an SQL statement?
Complete activity switching according to sliding