You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: _get_started/installation/linux.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ PyTorch is supported on Linux distributions that use [glibc](https://www.gnu.org
25
25
### Python
26
26
{: #linux-python}
27
27
28
-
Python 3.6 or greater is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
28
+
Python 3.7 or greater is generally installed by default on any of our supported Linux distributions, which meets our recommendation.
29
29
30
30
> 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.
Copy file name to clipboardexpand all lines: _get_started/installation/mac.md
+13-12
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,19 @@
1
1
# Installing on macOS
2
2
{:.no_toc}
3
3
4
-
PyTorch can be installed and used on macOS. Depending on your system and compute requirements, your experience with PyTorch on a Mac may vary in terms of processing time. It is recommended, but not required, that your Mac have an NVIDIA GPU in order to harness the full power of PyTorch's [CUDA](https://developer.nvidia.com/cuda-zone)[support](https://pytorch.org/tutorials/beginner/blitz/tensor_tutorial.html?highlight=cuda#cuda-tensors).
5
-
6
-
> Currently, CUDA support on macOS is only available by [building PyTorch from source](#mac-from-source)
4
+
PyTorch can be installed and used on macOS. Depending on your system and GPU capabilities, your experience with PyTorch on a Mac may vary in terms of processing time.
7
5
8
6
## Prerequisites
9
7
{: #mac-prerequisites}
10
8
11
9
### macOS Version
12
10
13
-
PyTorch is supported on macOS 10.10 (Yosemite) or above.
11
+
PyTorch is supported on macOS 10.15 (Catalina) or above.
14
12
15
13
### Python
16
14
{: #mac-python}
17
15
18
-
It is recommended that you use Python 3.5 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.7 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/).
19
17
20
18
### Package Manager
21
19
{: #mac-package-manager}
@@ -24,15 +22,21 @@ To install the PyTorch binaries, you will need to use one of two supported packa
24
22
25
23
#### Anaconda
26
24
27
-
To install Anaconda, you can [download graphical installer](https://www.anaconda.com/download/#macos) or use the command-line installer. If you use the command-line installer, you can right-click on the installer link, select `Copy Link Address`, and then use the following commands:
25
+
To install Anaconda, you can [download graphical installer](https://www.anaconda.com/download/#macos) or use the command-line installer. If you use the command-line installer, you can right-click on the installer link, select `Copy Link Address`, or use the following commands on Intel Mac:
28
26
29
27
```bash
30
28
# The version of Anaconda may be different depending on when you are installing`
For the majority of PyTorch users, installing from a pre-built binary via a package manager will provide the best experience. However, there are times when you may want to install the bleeding edge PyTorch code, whether for testing or actual development on the PyTorch core. To install the latest PyTorch code, you will need to [build PyTorch from source](https://github.com/pytorch/pytorch#from-source).
91
95
92
-
> You will also need to build from source if you want CUDA support.
93
-
94
96
### Prerequisites
95
97
{: #mac-prerequisites-2}
96
98
97
-
1. Install [Anaconda](#anaconda)
98
-
2. Install [CUDA](https://developer.nvidia.com/cuda-downloads), if your machine has a [CUDA-enabled GPU](https://developer.nvidia.com/cuda-gpus).
99
-
3. Follow the steps described here: [https://github.com/pytorch/pytorch#from-source](https://github.com/pytorch/pytorch#from-source)
99
+
1.[Optional] Install [Anaconda](#anaconda)
100
+
2. Follow the steps described here: [https://github.com/pytorch/pytorch#from-source](https://github.com/pytorch/pytorch#from-source)
100
101
101
102
You can verify the installation as described [above](#mac-verification).
0 commit comments