How to install PyTorch and TensorFlow together with GPU support | Tutorial | Techy Man's Solutions

Опубликовано: 16 Апрель 2026
на канале: Techy Man's Solutions
1,173
35

Thanks for watching this video.
Do like and Subscribe!

Drivers:

Download latest drivers (by website): https://www.nvidia.com/download/index...
Download latest drivers (by GeForce Experience): https://www.nvidia.com/en-in/geforce/... (Recommended)

Then verify by using: nvidia-smi (in cmd)

Install conda:

https://repo.anaconda.com/miniconda/M...
Tick the delete cache after installing checkbox in the installer

TensorFlow:

conda create -n tensorflow_env python=3.8
conda activate tensorflow_env

conda config --add channels conda-forge
conda config --set channel_priority strict

conda install cudatoolkit=11.2 cudnn=8.1 -c conda-forge

conda install tensorflow-gpu=2.10 -c conda-forge

Verifictaion: python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

Exit the environtment:

conda deactivate

PyTorch:

conda create -n pytorch_env python=3.11
conda activate pytorch_env

conda config --add channels conda-forge
conda config --set channel_priority strict

conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia

Verification: import torch
torch.cuda.is_available()

Exit the environtment:

conda deactivate

Now you have both TensorFlow and PyTorch installed.
Just log in to different ennironments to use them

conda activate pytorch_env (for pytorch)

conda activate tensorflow_env (for tensorflow)


Tags:

how to install tensorflow in python,how to install tensorflow,install tensorflow gpu,install tensorflow,how to install tensorflow on windows 10,tensorflow,how to install tensorflow in anaconda,install tensorflow gpu windows 10,how to install tensorflow in python 3.11,how to install tensorflow in visual studio code,how to install tensorflow in windows,how to install tensorflow in windows 11,how to install tensorflow in python on windows,install tensorflow gpu,install tensorflow gpu windows 10,tensorflow install gpu,tensorflow,install tensorflow,install tensorflow 2.4,pytorch,install tensorflow gpu windows 11,tensorflow gpu install windows 10,how to install tensorflow in anaconda,pytorch gpu install windows,how to install tensorflow,how to install tensorflow in windows 11,how to install tensorflow gpu,how to install cuda for pytorch,install pytorch with cuda,how to install cuda and cudnn