From 444885202225d2782338833da76a0b1771839987 Mon Sep 17 00:00:00 2001
From: Svetlana Karslioglu
Date: Tue, 12 Dec 2023 15:12:25 -0800
Subject: [PATCH 1/3] Update Python version requirement for Windows
Fixes #95628
---
_get_started/installation/windows.md | 2 +-
_includes/quick_start_local.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/_get_started/installation/windows.md b/_get_started/installation/windows.md
index d6a59f6d8323..6c0f34bd6699 100644
--- a/_get_started/installation/windows.md
+++ b/_get_started/installation/windows.md
@@ -18,7 +18,7 @@ PyTorch is supported on the following Windows distributions:
### Python
{: #windows-python}
-Currently, PyTorch on Windows only supports Python 3.8-3.11; Python 2.x is not supported.
+Currently, PyTorch on Windows only supports Python 3.8-3.10; Python 2.x is not supported.
As it is not installed by default on Windows, there are multiple ways to install Python:
diff --git a/_includes/quick_start_local.html b/_includes/quick_start_local.html
index 8fcf9e116b5a..24fecbc2c6c1 100644
--- a/_includes/quick_start_local.html
+++ b/_includes/quick_start_local.html
@@ -5,7 +5,7 @@
install previous versions of PyTorch. Note that LibTorch is only available for C++.
-NOTE: Latest PyTorch requires Python 3.8 or later.
+
NOTE: Latest PyTorch requires Python 3.8 or later. On Windows, only Python 3.8 - 3.10 is supported.
From 5189166382ce620dfd7eb5c8d2553e8ee6a11153 Mon Sep 17 00:00:00 2001
From: Svetlana Karslioglu
Date: Wed, 13 Dec 2023 09:56:25 -0800
Subject: [PATCH 2/3] Update to include details in sections and be vague in the
note.
---
_get_started/installation/linux.md | 2 +-
_get_started/installation/mac.md | 7 ++++++-
_includes/quick_start_local.html | 3 +--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/_get_started/installation/linux.md b/_get_started/installation/linux.md
index fb65cc03452b..8b8faa7a4048 100644
--- a/_get_started/installation/linux.md
+++ b/_get_started/installation/linux.md
@@ -25,7 +25,7 @@ PyTorch is supported on Linux distributions that use [glibc](https://www.gnu.org
### Python
{: #linux-python}
-Python 3.8 or greater is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
+Python 3.8-3.11 is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
> Tip: By default, you will have to use the command `python3` to run Python. If you want to use just the command `python`, instead of `python3`, you can symlink `python` to the `python3` binary.
diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md
index 692bd99b6f1e..3f57bb6228de 100644
--- a/_get_started/installation/mac.md
+++ b/_get_started/installation/mac.md
@@ -13,7 +13,12 @@ PyTorch is supported on macOS 10.15 (Catalina) or above.
### Python
{: #mac-python}
-It is recommended that you use Python 3.8 or greater, which can be installed either through the Anaconda package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or the [Python website](https://www.python.org/downloads/mac-osx/).
+It is recommended that you use Python 3.8 - 3.11, with Python 3.12 being partially
+supported. You can install Python either through the Anaconda
+package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or
+the [Python website](https://www.python.org/downloads/mac-osx/).
+
+In one of the upcoming PyTorch releases, support for Python 3.8 will be dropped.
### Package Manager
{: #mac-package-manager}
diff --git a/_includes/quick_start_local.html b/_includes/quick_start_local.html
index 24fecbc2c6c1..d6273cfe5edc 100644
--- a/_includes/quick_start_local.html
+++ b/_includes/quick_start_local.html
@@ -5,8 +5,7 @@
install previous versions of PyTorch. Note that LibTorch is only available for C++.
-NOTE: Latest PyTorch requires Python 3.8 or later. On Windows, only Python 3.8 - 3.10 is supported.
-
+NOTE: Latest PyTorch requires Python 3.8 or later. For more details, see Python section below.
From 732a8e23fff000cdf54b78fc90b0536c5b63efd5 Mon Sep 17 00:00:00 2001
From: Svetlana Karslioglu
Date: Wed, 13 Dec 2023 12:43:42 -0800
Subject: [PATCH 3/3] Address comments
---
_get_started/installation/mac.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md
index 3f57bb6228de..0beae639dca2 100644
--- a/_get_started/installation/mac.md
+++ b/_get_started/installation/mac.md
@@ -13,12 +13,12 @@ PyTorch is supported on macOS 10.15 (Catalina) or above.
### Python
{: #mac-python}
-It is recommended that you use Python 3.8 - 3.11, with Python 3.12 being partially
-supported. You can install Python either through the Anaconda
+It is recommended that you use Python 3.8 - 3.11.
+You can install Python either through the Anaconda
package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or
the [Python website](https://www.python.org/downloads/mac-osx/).
-In one of the upcoming PyTorch releases, support for Python 3.8 will be dropped.
+In one of the upcoming PyTorch releases, support for Python 3.8 will be deprecated.
### Package Manager
{: #mac-package-manager}