当前位置:网站首页>Pytoch deep learning environment construction

Pytoch deep learning environment construction

2022-07-04 17:45:00 Wu_ Candy

Windows In the environment Anaconda3 The installation steps are as follows :

pytorch Official website :

https://pytorch.org/ https://pytorch.org/get-started/locally/

1、 First download the following screenshot on the Internet by yourself Anaconda3*.exe file , Double click to proceed to the next installation .

2、 After successful installation, find in all the programs shown in the figure below Anaconda Prompt Open the command line window

3、 open Anaconda Prompt after , Execute the following commands in turn

(1)、conda install pytorch torchvision -c pytorch

(2)、 explain : Slow speed , Tsinghua can be modified Mirror

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ modify Conda Source conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes

modify Conda The source of channels command

conda config --remove channels website

(3)、conda install pytorch torchvision # Don't bring -c

(4)、 install jupty development tool :

conda install jupyter

If no error is reported , Congratulations, your environment has been set up successfully , Next, find in all programs Jupyter Notebook

4、 open Jupyter Notebook Enter the local environment code editing and running interface , During the startup process, the window shown in the following figure will be opened first :

The browser will open automatically again , The website is :http://localhost:8888/tree, As shown in the screenshot below :

5、 stay jupyter Create a new project code note in , Start writing code script

step1: Click on New, choice Python3

step2: Enter the code script editing page

step3、 Run code , Use Control + Enter Key execution

原网站

版权声明
本文为[Wu_ Candy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041542195473.html