Install Python, Tensorflow, Pytorch, CUDA on Ubuntu 20.04 in 2022
Contents
0. Check System, CPU, GPU
|
|
- GPU: NVIDIA GeForce GTX 1060 3GB
- CPU: Intel i7-5820K
- Download and use Miniconda (latest Version 3.9)
Conda is an open source package management system and environment management system that runs on Windows, macOS and Linux. Conda quickly installs, runs and updates packages and their dependencies. Conda easily creates, saves, loads and switches between environments on your local computer. It was created for Python programs, but it can package and distribute software for any language.
- Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others.
|
|
Reboot the terminal
|
|
Reboot Termimal
|
|
Cuda Family
1. Check CUDA version
|
|
- NVIDIA-SMI: 470.86
- Driver Version: 470.86
- CUDA Version: 11.4
2. Download cuDNN
https://developer.nvidia.com/rdp/cudnn-archive
Download cuDNN v8.0.5 (Nov 9th, 2020) for CUDA 11.0
|
|
3. Install cuDNN
Open a new terminal, unzip the cuDNN package just downloaded
|
|
Source
|
|
Copy the following files into the CUDA toolkit directory
|
|