当前位置:网站首页>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 !
边栏推荐
- Kafaka技术第一课
- C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
- Server configuration jupyter environment
- Cartoon: looking for the k-th element of an unordered array (Revised)
- MATLAB查阅
- Cmake tutorial step5 (add system self-test)
- Cartoon: how to multiply large integers? (next)
- 论文阅读_中文NLP_LTP
- ITK Example
- C # mixed graphics and text, written to the database in binary mode
猜你喜欢
Anaconda中配置PyTorch环境——win10系统(小白包会)
Oracle recovery tools -- Oracle database recovery tool
mongodb(快速上手)(一)
Thesis reading_ Medical NLP model_ EMBERT
Mongodb (quick start) (I)
论文阅读_医疗NLP模型_ EMBERT
Alpha conversion from gamma space to linner space under URP (II) -- multi alpha map superposition
Oracle Recovery Tools ----oracle数据库恢复利器
每日一练:关于日期的一系列
Knowledge points of MySQL (7)
随机推荐
十个顶级自动化和编排工具
Flask solves the problem of CORS err
查看自己电脑连接过的WiFi密码
Mongodb (quick start) (I)
Cartoon: looking for the best time to buy and sell stocks
Use QT designer interface class to create two interfaces, and switch from interface 1 to interface 2 by pressing the key
Kafaka technology lesson 1
求解为啥all(())是True, 而any(())是FALSE?
漫画:有趣的【海盗】问题
Accuracy of BigDecimal Division
服务器配置 jupyter环境
一口气读懂 IT发展史
Is it safe to open an account online? What is the general interest rate of securities financing?
leetcode每日一练:旋转数组
论文阅读_医疗NLP模型_ EMBERT
论文阅读_中文NLP_LTP
Troubleshooting - about clip not found Visual Studio
Design of electronic clock based on 51 single chip microcomputer
Mysql5.6 parsing JSON strings (supporting complex nested formats)
漫画:寻找无序数组的第k大元素(修订版)