From 7117db8caf45b137b82e426155caf3e43a66876b Mon Sep 17 00:00:00 2001 From: gaikwadrahul8 <115997457+gaikwadrahul8@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:41:37 +0530 Subject: [PATCH] Update installation instructions in pip.md to address PEP 668 compliance for Windows WSL2 with Ubuntu 24.04 or later. --- site/en/install/pip.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/en/install/pip.md b/site/en/install/pip.md index 718c6a3f61..ffdcd957be 100644 --- a/site/en/install/pip.md +++ b/site/en/install/pip.md @@ -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'))"