Skip to content

Commit 7ad301d

Browse files
Sarah-2003Sarah-2026
authored andcommitted
Update install docs with correct Python, CUDA, cuDNN, and OS versions
The install guides had several outdated version references that no longer match TensorFlow 2.21's tested build configurations: - Python: 3.9-3.12 -> 3.10-3.13 - CUDA Toolkit: 12.3 -> 12.5 - cuDNN SDK: 8.9.7 -> 9.3 - Ubuntu minimum: 16.04 -> 20.04 - macOS minimum: 10.12.6 (Sierra) -> 12.0 (Monterey) - Windows minimum: 7 -> 10 - Windows Native conda example: python=3.9 -> python=3.11 - Windows Native pip example: tensorflow<2.11 -> tensorflow (CPU-only) - Windows source build: Python 3.9+ -> 3.10+ Contributes to #111734
1 parent 7c36502 commit 7ad301d

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

site/en/install/pip.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ step-by-step instructions.
5050
[TensorFlow-DirectML-Plugin](https://github.com/microsoft/tensorflow-directml-plugin#tensorflow-directml-plugin-)
5151

5252
```bash
53-
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
54-
# Anything above 2.10 is not supported on the GPU on Windows Native
55-
python -m pip install "tensorflow<2.11"
53+
# Install CPU-only TensorFlow on Windows Native
54+
python -m pip install tensorflow
5655
# Verify the installation:
57-
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"
56+
python -c "import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
5857
```
5958

6059
* {Windows WSL2}
@@ -131,16 +130,16 @@ enable compute capabilities by [building TensorFlow from source](./source.md).
131130
132131
## System requirements
133132
134-
* Ubuntu 16.04 or higher (64-bit)
133+
* Ubuntu 20.04 or higher (64-bit)
135134
* macOS 12.0 (Monterey) or higher (64-bit) *(no GPU support)*
136-
* Windows Native - Windows 7 or higher (64-bit) *(no GPU support after TF 2.10)*
135+
* Windows Native - Windows 10 or higher (64-bit) *(no GPU support after TF 2.10)*
137136
* Windows WSL2 - Windows 10 19044 or higher (64-bit)
138137
139138
Note: GPU support is available for Ubuntu and Windows with CUDA®-enabled cards.
140139
141140
## Software requirements
142141
143-
* Python 3.9–3.12
142+
* Python 3.10–3.13
144143
* pip version 19.0 or higher for Linux (requires `manylinux2014` support) and
145144
Windows. pip version 20.3 or higher for macOS.
146145
* Windows Native Requires
@@ -152,8 +151,8 @@ The following NVIDIA® software are only required for GPU support.
152151
* [NVIDIA® GPU drivers](https://www.nvidia.com/drivers)
153152
* >= 525.60.13 for Linux
154153
* >= 528.33 for WSL on Windows
155-
* [CUDA® Toolkit 12.3](https://developer.nvidia.com/cuda-toolkit-archive).
156-
* [cuDNN SDK 8.9.7](https://developer.nvidia.com/cudnn).
154+
* [CUDA® Toolkit 12.5](https://developer.nvidia.com/cuda-toolkit-archive).
155+
* [cuDNN SDK 9.3](https://developer.nvidia.com/cudnn).
157156
* *(Optional)*
158157
[TensorRT](https://docs.nvidia.com/deeplearning/tensorrt/archives/index.html#trt_7)
159158
to improve latency and throughput for inference.
@@ -164,7 +163,7 @@ The following NVIDIA® software are only required for GPU support.
164163
165164
### 1. System requirements
166165
167-
* Ubuntu 16.04 or higher (64-bit)
166+
* Ubuntu 20.04 or higher (64-bit)
168167
169168
TensorFlow only officially supports Ubuntu. However, the following
170169
instructions may also work for other Linux distros.
@@ -284,7 +283,7 @@ The following NVIDIA® software are only required for GPU support.
284283

285284
### 1. System requirements
286285

287-
* macOS 10.12.6 (Sierra) or higher (64-bit)
286+
* macOS 12.0 (Monterey) or higher (64-bit)
288287

289288
Note: While TensorFlow supports Apple Silicon (M1), packages that include
290289
custom C++ extensions for TensorFlow also need to be compiled for Apple M1.
@@ -300,7 +299,7 @@ The following NVIDIA® software are only required for GPU support.
300299
301300
Check if your Python environment is already configured:
302301
303-
Note: Requires Python 3.9–3.11, and pip >= 20.3 for MacOS.
302+
Note: Requires Python 3.10–3.13, and pip >= 20.3 for MacOS.
304303
305304
```bash
306305
python3 --version
@@ -341,7 +340,7 @@ The following NVIDIA® software are only required for GPU support.
341340
342341
## 1. System requirements
343342
344-
* Windows 7 or higher (64-bit)
343+
* Windows 10 or higher (64-bit)
345344
346345
Note: Starting with TensorFlow `2.10`, Windows CPU-builds for x86/x64
347346
processors are built, maintained, tested and released by a third party:
@@ -392,7 +391,7 @@ The following NVIDIA® software are only required for GPU support.
392391
Create a new conda environment named `tf` with the following command.
393392

394393
```bash
395-
conda create --name tf python=3.9
394+
conda create --name tf python=3.11
396395
```
397396

398397
You can deactivate and activate it with the following commands.
@@ -415,7 +414,7 @@ The following NVIDIA® software are only required for GPU support.
415414
Then install the CUDA, cuDNN with conda.
416415

417416
```bash
418-
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
417+
conda install -c conda-forge cudatoolkit=12.5 cudnn=9.3
419418
```
420419

421420
### 6. Install TensorFlow
@@ -434,8 +433,8 @@ The following NVIDIA® software are only required for GPU support.
434433
PyPI.
435434
436435
```bash
437-
# Anything above 2.10 is not supported on the GPU on Windows Native
438-
pip install "tensorflow<2.11"
436+
# GPU is not supported on Windows Native after TF 2.10; install CPU-only
437+
pip install tensorflow
439438
```
440439
441440
### 7. Verify the installation

site/en/install/source_windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ environment.
1313
### Install Python and the TensorFlow package dependencies
1414

1515
Install a
16-
[Python 3.9+ 64-bit release for Windows](https://www.python.org/downloads/windows/).
16+
[Python 3.10+ 64-bit release for Windows](https://www.python.org/downloads/windows/).
1717
Select *pip* as an optional feature and add it to your `%PATH%` environmental
1818
variable.
1919

0 commit comments

Comments
 (0)