当前位置:网站首页>Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
2022-07-05 17:48:00 【Times & Beliefs】
One 、 background
Recently, I am running a deep learning code , need PyTorch Environment . After successful configuration , Quickly summarize the resumption , Share it by the way !!!
Two 、 Prerequisite
Installed anaconda.
anaconda What is it ?
Generally speaking, it is an environment manager , You can think of it as a pool , There are environments of various names in this pool ( The name is decided by yourself , Just use it to identify the environment ). The environment in the pool does not interfere with each other , It is convenient for us to run different codes in different environments ( Because of different codes , The environment and version he requires are different )
3、 ... and 、 To configure PyTorch Environmental process
1.win10 Open the terminal under the system
(1) Shortcut key win+R, The following window will pop up 
(2) Input cmd, Click on “ determine ”
(3) Get into win10 terminal 
2. Activate anaconda
Enter the following command , Get into anaconda Of base Environmental Science
activate

3. Create a new environment
conda create -n pt python==3.7
pt It's my own name , You can designate as you like . here python Version I specified 3.7, You can designate according to your own needs OK.


You can view the current anaconda Existing environment
conda env list

4. Configure in the new environment PyTorch Environment
(1) Check your own computer cuda edition ;
The method is :win+R Turn on the computer terminal , Input
nvcc --version

(2) open PyTorch Official website 
(3) Pull down to find Previous versions of PyTorch, And then click 
(4) Choose your own computer cuda Adaptive commands , replicate 
(5) stay anaconda Of base Activate the new environment just created pt
(6) Will just from pytorch Paste the command copied from the official website , Then go back and run 


5. stay pycharm Set up a new environment pt And verify PyTorch Environment configured successfully
(1) open pycharm, Configure new environment pt




find anaconda Environment under the installation path envs, Find the new environment just now pt
find pt Under the environment python.exe, Click on OK



(2) New script , Enter the following code to test
import torch
print(torch.__version__)

appendix : If it helps , Remember the praise. + Collection + Focus on !!! There is something inappropriate in the article , You are also welcome to correct and criticize !
边栏推荐
- 2022新版PMP考试有哪些变化?
- 一口气读懂 IT发展史
- QT控制台打印输出
- Why is February 28 in the Gregorian calendar
- ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise
- How to modify MySQL fields as self growing fields
- PMP认证需具备哪些条件啊?费用多少啊?
- 漫画:如何实现大整数相乘?(上) 修订版
- Domain name resolution, reverse domain name resolution nbtstat
- 解读:如何应对物联网目前面临的安全问题?
猜你喜欢

leetcode每日一题:字符串中的第一个唯一字符

提高应用程序性能的7个DevOps实践

leetcode每日一练:旋转数组

Anaconda中配置PyTorch环境——win10系统(小白包会)

企业数字化发展中的六个安全陋习,每一个都很危险!

CVPR 2022 best student paper: single image estimation object pose estimation in 3D space

ICML 2022 | Meta提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲

每日一练:关于日期的一系列

PMP认证需具备哪些条件啊?费用多少啊?

Oracle Recovery Tools ----oracle数据库恢复利器
随机推荐
Knowing that his daughter was molested, the 35 year old man beat the other party to minor injury level 2, and the court decided not to sue
Why is all (()) true and any (()) false?
Cmake tutorial Step2 (add Library)
漫画:如何实现大整数相乘?(上) 修订版
十个顶级自动化和编排工具
如何修改mysql字段为自增长字段
Tita performance treasure: how to prepare for the mid year examination?
漫画:如何实现大整数相乘?(整合版)
删除数组中的某几个元素
Cmake tutorial step6 (add custom commands and generate files)
Ant financial's sudden wealth has not yet begun, but the myth of zoom continues!
求解为啥all(())是True, 而any(())是FALSE?
Matery主题自定义(一)黑夜模式
漏洞复现----48、Airflow dag中的命令注入(CVE-2020-11978)
中国银河证券开户安全吗 开户后多久能买股票
Thesis reading_ Medical NLP model_ EMBERT
ICML 2022 | Meta propose une méthode robuste d'optimisation bayésienne Multi - objectifs pour faire face efficacement au bruit d'entrée
论文阅读_中文NLP_LTP
企业数字化发展中的六个安全陋习,每一个都很危险!
蚂蚁金服的暴富还未开始,Zoom的神话却仍在继续!