当前位置:网站首页>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 .
边栏推荐
- IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
- Conversion du format de données GPS [facile à comprendre]
- 语义分割实验:Unet网络/MSRC2数据集
- MySQL index - extended data
- Want to ask, how to choose a securities firm? Is it safe to open an account online?
- ZABBIX agent2 monitors mongodb templates and configuration operations
- 报错ModuleNotFoundError: No module named ‘cv2.aruco‘
- How to clear floating?
- Why learn harmonyos and how to get started quickly?
- 一类恒等式的应用(范德蒙德卷积与超几何函数)
猜你喜欢
Wireless WiFi learning 8-channel transmitting remote control module
Why learn harmonyos and how to get started quickly?
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
Intern position selection and simplified career development planning in Internet companies
Check the debug port information in rancher and do idea remote JVM debug
Third party payment interface design
MySQL transaction
自动化测试生命周期
What is digital existence? Digital transformation starts with digital existence
MySQL index - extended data
随机推荐
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
MySQL constraints
Linux Installation and deployment lamp (apache+mysql+php)
Redis highly available sentinel mechanism
Xi IO flow
嵌入式软件架构设计-消息交互
Codeforces Round #804 (Div. 2)
Intern position selection and simplified career development planning in Internet companies
Swift - add navigation bar
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
Matlab struct function (structure array)
About cache exceptions: solutions for cache avalanche, breakdown, and penetration
How to clear floating?
Correct opening method of redis distributed lock
Flutter2 heavy release supports web and desktop applications
Solve the problem of cache and database double write data consistency
Array cyclic shift problem
ZABBIX ODBC database monitoring
Why do you always fail in automated tests?