当前位置:网站首页>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 !
边栏推荐
- Disabling and enabling inspections pycharm
- ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声
- 为什么阳历中平年二月是28天
- MySQL之知识点(七)
- Is it safe for China Galaxy Securities to open an account? How long can I buy stocks after opening an account
- 一口气读懂 IT发展史
- Cloud security daily 220705: the red hat PHP interpreter has found a vulnerability of executing arbitrary code, which needs to be upgraded as soon as possible
- 力扣解法汇总729-我的日程安排表 I
- Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!
- 漫画:有趣的海盗问题 (完整版)
猜你喜欢

Ten capabilities that cyber threat analysts should have

MySQL之知识点(七)

C # mixed graphics and text, written to the database in binary mode

基于YOLOv3的口罩佩戴检测

Rider set the highlighted side of the selected word, remove the warning and suggest highlighting

Check the WiFi password connected to your computer

「运维有小邓」用于云应用程序的单点登录解决方案

Count the running time of PHP program and set the maximum running time of PHP

Winedt common shortcut key modify shortcut key latex compile button

EPM相关
随机推荐
Is it safe for China Galaxy Securities to open an account? How long can I buy stocks after opening an account
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
读libco保存恢复现场汇编代码
Cmake tutorial step5 (add system self-test)
Zabbix
CVPR 2022最佳学生论文:单张图像估计物体在3D空间中的位姿估计
tkinter窗口预加载
数据访问 - EntityFramework集成
Seven Devops practices to improve application performance
GFS分布式文件系统
北京内推 | 微软亚洲研究院机器学习组招聘NLP/语音合成等方向全职研究员
忽米沄析:工业互联网标识解析与企业信息系统的融合应用
Cartoon: interesting pirate problem (full version)
神经网络自我认知模型
Kafaka技术第一课
Humi analysis: the integrated application of industrial Internet identity analysis and enterprise information system
漫画:寻找无序数组的第k大元素(修订版)
C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
十个顶级自动化和编排工具
请问下为啥有的表写sql能查到数据,但在数据地图里查不到啊,查表结构也搜不到