Skip to content

Instantly share code, notes, and snippets.

@vicente-gonzalez-ruiz
Last active May 6, 2024 09:42
Show Gist options
  • Save vicente-gonzalez-ruiz/dce73d1489890cc9285213b67db69e67 to your computer and use it in GitHub Desktop.
Save vicente-gonzalez-ruiz/dce73d1489890cc9285213b67db69e67 to your computer and use it in GitHub Desktop.
TensorFlow Debian
0. See:
https://www.tensorflow.org/install/source#tested_build_configurations
1. Install Miniconda from https://docs.anaconda.com/free/miniconda/
cd ~/Downloads
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -u -p ~/miniconda3
# rm -r Miniconda3-latest-Linux-x86_64.sh # (optional)
~/miniconda3/bin/conda init bash
cd
source .bashrc
2. Install tensorflow and required packages (see https://medium.com/nerd-for-tech/installing-tensorflow-with-gpu-acceleration-on-linux-f3f55dd15a9):
conda create -y --name TF python=3.9
conda activate TF
conda install -y -c conda-forge cudatoolkit cudnn
pip install --upgrade pip
pip install tensorflow==2.11
3. Test (a GPU should be listed):
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment