Skip to content

Instantly share code, notes, and snippets.

@mypapit
Last active March 21, 2025 05:28
Show Gist options
  • Select an option

  • Save mypapit/e6f560be6a5e488ef7f07900013e06a6 to your computer and use it in GitHub Desktop.

Select an option

Save mypapit/e6f560be6a5e488ef7f07900013e06a6 to your computer and use it in GitHub Desktop.
# this is for using conda
conda create -n tensorflow python=3.10
conda activate tensorflow
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
# Anything above 2.10 is not supported on the GPU on Windows Native
#ensure numpy 1.26 is installed (tensorflow 2.10 compat)
python -m pip install tensorflow==2.10 scikit-learn==1.6.1 numpy=1.24.4
# Verify the installation:
python -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