Skip to content

Commit

Permalink
Update min Python to 3.9 (#1773)
Browse files Browse the repository at this point in the history
* Update min Python to 3.9

* Update mac.md

* Update windows.md

* Update linux.md
  • Loading branch information
kit1980 authored Oct 17, 2024
1 parent d9134e6 commit fd758bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
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.
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

0 comments on commit fd758bc

Please sign in to comment.