Skip to content

Update min Python to 3.9 #1773

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
Oct 17, 2024
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-3.11 is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
Python 3.9-3.12 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
4 changes: 1 addition & 3 deletions _get_started/installation/mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ PyTorch is supported on macOS 10.15 (Catalina) or above.
### Python
{: #mac-python}

It is recommended that you use Python 3.8 - 3.11.
It is recommended that you use Python 3.9 - 3.11.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I was about to mention, there is also linux.md with the same text.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just done already

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.9-3.12; Python 2.x is not supported.

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

Expand Down
2 changes: 1 addition & 1 deletion _includes/quick_start_local.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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.9 or later.</p>

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