Deep learning environment configuration pytorch-GPU version

1. Download and install Anaconda
official website: Free Download |
Check Add environment variables when installing Anaconda. This can reduce one step of operation and no longer need to add it manually.
2. Create a virtual environment in anacondaimage

Create a virtual environment, where pytorch is the name of the virtual environment, and 3.8.8 corresponds to the python version number:
conda create -n pytorch python=3.8.8

Activate to enter the virtual environment, where pytorch is the name of the virtual environment:
activate pytorch

3. Check your CUDA version

CMD command line input: nvidia-smi

image

4. Some computers come with CUDA and do not need to install it.

5. Install pytorch

pytorch command to get web pages: Previous PyTorch Versions | PyTorch

image

Reference link: Deep learning environment configuration (pytorch version) ---- Super invincible detailed version (just have your hands on it)_Franpper's blog-CSDN blog

Guess you like

Origin blog.csdn.net/cfy2401926342/article/details/132034079