Skip to content

Commit 89ba69b

Browse files
authored
Update Python version requirement for Windows (#1527)
* Update Python version requirement for Windows * Fixes #95628 * Update to include details in sections and be vague in the note.
1 parent a5c98bf commit 89ba69b

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

_get_started/installation/linux.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PyTorch is supported on Linux distributions that use [glibc](https://www.gnu.org
2525
### Python
2626
{: #linux-python}
2727

28-
Python 3.8 or greater is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
28+
Python 3.8-3.11 is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
2929

3030
> 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.
3131

_get_started/installation/mac.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ PyTorch is supported on macOS 10.15 (Catalina) or above.
1313
### Python
1414
{: #mac-python}
1515

16-
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/).
16+
It is recommended that you use Python 3.8 - 3.11.
17+
You can install Python either through the Anaconda
18+
package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or
19+
the [Python website](https://www.python.org/downloads/mac-osx/).
20+
21+
In one of the upcoming PyTorch releases, support for Python 3.8 will be deprecated.
1722

1823
### Package Manager
1924
{: #mac-package-manager}

_get_started/installation/windows.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ PyTorch is supported on the following Windows distributions:
1818
### Python
1919
{: #windows-python}
2020

21-
Currently, PyTorch on Windows only supports Python 3.8-3.11; Python 2.x is not supported.
21+
Currently, PyTorch on Windows only supports Python 3.8-3.10; Python 2.x is not supported.
2222

2323
As it is not installed by default on Windows, there are multiple ways to install Python:
2424

_includes/quick_start_local.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
<a href="{{ site.baseurl }}/get-started/previous-versions">install previous versions of PyTorch</a>. Note that LibTorch is only available for C++.
66
</p>
77

8-
<p><b>NOTE:</b> Latest PyTorch requires Python 3.8 or later.
9-
</p>
8+
<p><b>NOTE:</b> Latest PyTorch requires Python 3.8 or later. For more details, see Python section below.</p>
109

1110
<div class="row">
1211
<div class="col-md-3 headings">

0 commit comments

Comments
 (0)