Skip to content

Commit

Permalink
Update installation instructions in pip.md to address PEP 668 complia…
Browse files Browse the repository at this point in the history
…nce for Windows WSL2 with Ubuntu 24.04 or later.
  • Loading branch information
gaikwadrahul8 authored Dec 19, 2024
1 parent bbc0b9c commit 7117db8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/en/install/pip.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ step-by-step instructions.
for CUDA in WSL.

```bash
# Windows WSL2 with Ubuntu 24.04 or later adheres to PEP 668, requiring users to manage their Python environments independently.
sudo apt install python3-venv
python3 -m venv ~/tf
source ~/tf/bin/activate
python3 -m pip install tensorflow[and-cuda]
# Verify the installation:
python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
Expand Down

0 comments on commit 7117db8

Please sign in to comment.