当前位置:网站首页>Pytorch installation (personal records)

Pytorch installation (personal records)

2022-04-23 22:02:00 Know what you know and slowly understand what you don't know

( Personal operation records )

1. install Anaconda

Anaconda  The installation package can go to  https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/  download  

( Tsinghua mirror )

installation is complete Anaconda, Test environment variables

  • Get into cmd Command window
  1. verification Anaconda Environment installed successfully
    conda --version
  2. Check which environment variables are currently installed
    conda info --envs

  Input conda list   

You can see that it has been installed numpysympy And so on .

2. establish PyTorch Environmental Science

  1. Get into  Anaconda prompt  Command window ( In the beginning column )
  2. Enter the following :conda create -n PyTorch python=3.8

PyTorch Is the name of the virtual environment ( It can be set at will ),3.8  yes python edition , Can be changed according to their own needs , Be sure to specify specific  python  edition .

3. Then press  y, Continue to install the required dependent packages

Once created , Enter the following command :conda info --envs

You can see all your surroundings

Input conda activate PyTorch  Activate

Reference blog :PyTorch The latest installation tutorial (2021-07-27)_ tuyere IT Growth record of pigs -CSDN Blog _pytorch

版权声明
本文为[Know what you know and slowly understand what you don't know]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204200609332591.html