Skip to content

Update Python version requirement for Windows #1527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _get_started/installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
7 changes: 6 additions & 1 deletion _get_started/installation/mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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 deprecated.

### Package Manager
{: #mac-package-manager}
Expand Down
2 changes: 1 addition & 1 deletion _get_started/installation/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
3 changes: 1 addition & 2 deletions _includes/quick_start_local.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<a href="{{ site.baseurl }}/get-started/previous-versions">install previous versions of PyTorch</a>. Note that LibTorch is only available for C++.
</p>

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

<div class="row">
<div class="col-md-3 headings">
Expand Down