当前位置:网站首页>Pytorch installation (very detailed)
Pytorch installation (very detailed)
2022-07-27 10:08:00 【Redamancy06】
List of articles
- 1.pytorch Installation
- 1.1 Environment configuration
- 1.2 establish pytorch Folder ( Environmental Science )
- 1.3 see pytorch Version history
- 1.4 Next, there is a trick
- 1.5 Start the download pytorch Environmental Science
- 1.6 verification pytorch Installation successful
- 1.7 uninstall pytorch Environmental Science
- 1.8 take pycharm Replace the environment with Anaconda Under the pytorch Environmental Science
1.pytorch Installation
1.1 Environment configuration

Run the

Anaconda Please see the detailed installation steps I wrote before http://t.csdn.cn/CZtm3
1.2 establish pytorch Folder ( Environmental Science )


Then enter and wait for installation

If this appears, it will be successful 
Look at the folder again, there is one more file pytorch

Then we enter the command to enter pytorch Environmental Science conda activate pytorch

We can see that we have entered pytorch Environmental Science 
This command is to view the packages installed in this environment conda list
1.3 see pytorch Version history
Links to previous versions https://pytorch.org/get-started/previous-versions/

I chose this , Because of my cuda The download is 11.1
1.4 Next, there is a trick
We are using anaconda Environmental management software , Various packages downloaded through instructions , Its default source , That is, the server that provides the installation package or compressed package , It was set up by their company . The location of this server is abroad , So the link speed is slow , unstable , Download speed is also slow . We can set the download source as domestic source through instructions .
Tsinghua source is recommended here 、 China University of science and technology .
1.4.1 Tsinghua 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 --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
1.4.2 China University of science and technology :
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --set show_channel_urls yes
Copy and paste all instructions into the command line . Download speed takes off after changing the source .
Copy these instructions to Anaconda Inside

Finish changing the download source .

Check whether the source has been added. The instruction is
conda config --show-source
1.5 Start the download pytorch Environmental Science

Then return and wait for installation 

Here is the version of the download package

What is shown here is what needs to be installed size 
fill y enter

Waiting for the installation

Installation successful

sign out pytorch Environmental Science
conda deactivate

View environment information
conda info -e
complete
1.6 verification pytorch Installation successful

stay pytorch Input in the environment python, then import torch, My situation indicates that the installation is successful
import torch

This is verification cuda Whether it can work normally
torch.cuda.is_available()

sign out python Environmental Science
quit()
1.7 uninstall pytorch Environmental Science

This statement will pytorch Environment delete , Follow the prompts , I'm not going to show you , It's not easy to download a good environment , Don't delete
conda remove -n pytorch --all
1.8 take pycharm Replace the environment with Anaconda Under the pytorch Environmental Science

Click on settings


Read my blog in detail http://t.csdn.cn/emDn2

Then click add

The end
边栏推荐
- Food safety | the kitchen board environment is very important. Do you know these use details?
- Shell variables, system predefined variables $home, $pwd, $shell, $user, custom variables, special variables $n, $, $*, [email protected],
- Concurrent thread state transition
- Go Basics - arrays and slices
- 3D face reconstruction and dense alignment with position map progression network
- Provincial Emergency Management Department: Guangzhou can strive to promote the experience of emergency safety education for children
- Food safety | the more you eat junk food, the more you want to eat it? Please keep this common food calorimeter
- Shell的read 读取控制台输入、read的使用
- 35 spark streaming backpressure mechanism, spark data skew solution and kylin's brief introduction
- 找工作 4 个月, 面试 15 家,拿到 3 个 offer
猜你喜欢

省应急管理厅:广州可争取推广幼儿应急安全宣教经验
![Flash memory usage and stm32subemx installation tutorial [day 3]](/img/ff/43ef2d0e1bdfd24fbc5c99e76455f1.png)
Flash memory usage and stm32subemx installation tutorial [day 3]

交换机端口镜像配置指南

oracle rac 19c pdb实例当掉

How to use tdengine sink connector?

How to restore the original version after installing Hal Library

Expose a technology boss from a poor family

去 OPPO 面试,被问麻了

Interview JD T5, was pressed on the ground friction, who knows what I experienced?

3D人脸重建:Joint 3D Face Reconstruction and Dense Alignment with position Map Regression Network
随机推荐
Shell read read console input, use of read
3D修复论文:Shape Inpainting using 3D Generative Adversarial Network and Recurrent Convolutional Networks
NFT system development - Tutorial
Visual slam lecture notes (I): Lecture 1 + Lecture 2
How to restore the original version after installing Hal Library
Concurrent Park and unpark description
Dcgan paper improvements + simplified code
PCL的ICP配准示例
pytorch的安装(非常详细)
女粉想要找男朋友,竟是为了...
DCGAN论文改进之处+简化代码
Case of burr (bulge) notch (depression) detection of circular workpiece
Food safety | is sugar free really sugar free? These truths need to be known
How does data analysis solve business problems? Here is a super detailed introduction
活体检测综述
数据分析如何解决商业问题?这里有份超详细攻略
XML overview
吃透Chisel语言.27.Chisel进阶之有限状态机(一)——基本有限状态机(Moore机)
Exercises --- quick arrangement, merging, floating point number dichotomy
Qt 学习(二) —— Qt Creator简单介绍