-
Notifications
You must be signed in to change notification settings - Fork 302
remove conda references from markdown for install UI #2010
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
base: site
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
# Installing on macOS | ||||||
{:.no_toc} | ||||||
|
||||||
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. | ||||||
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. | ||||||
|
||||||
## Prerequisites | ||||||
{: #mac-prerequisites} | ||||||
|
@@ -14,24 +14,13 @@ PyTorch is supported on macOS 10.15 (Catalina) or above. | |||||
{: #mac-python} | ||||||
|
||||||
It is recommended that you use Python 3.9 - 3.12. | ||||||
You can install Python either through the Anaconda | ||||||
package manager (see [below](#anaconda)), [Homebrew](https://brew.sh/), or | ||||||
You can install Python either through [Homebrew](https://brew.sh/) or | ||||||
the [Python website](https://www.python.org/downloads/mac-osx/). | ||||||
|
||||||
### Package Manager | ||||||
{: #mac-package-manager} | ||||||
|
||||||
To install the PyTorch binaries, you will need to use one of two supported package managers: [pip](https://pypi.org/project/pip/) or [Anaconda](https://www.anaconda.com/download/#macos). | ||||||
#### Anaconda | ||||||
|
||||||
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 Mac computer with Apple silicon: | ||||||
|
||||||
```bash | ||||||
# The version of Anaconda may be different depending on when you are installing` | ||||||
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh | ||||||
sh Miniconda3-latest-MacOSX-arm64.sh | ||||||
# and follow the prompts. The defaults are generally good.` | ||||||
``` | ||||||
To install the PyTorch binaries, you will need to use the supported package manager: [pip](https://pypi.org/project/pip/). | ||||||
#### pip | ||||||
|
||||||
*Python 3* | ||||||
|
@@ -43,19 +32,10 @@ If you installed Python via Homebrew or the Python website, `pip` was installed | |||||
## Installation | ||||||
{: #mac-installation} | ||||||
|
||||||
### Anaconda | ||||||
{: #mac-anaconda} | ||||||
|
||||||
To install PyTorch via Anaconda, use the following conda command: | ||||||
|
||||||
```bash | ||||||
conda install pytorch torchvision -c pytorch | ||||||
``` | ||||||
|
||||||
### pip | ||||||
{: #mac-pip} | ||||||
|
||||||
To install PyTorch via pip, use one of the following two commands, depending on your Python version: | ||||||
To install PyTorch via pip, use the following the command, depending on your Python version: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correcting language here - not relevant to this PR though so I can remove it if we want to do that another time. There's only one command under here though There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
```bash | ||||||
# Python 3.x | ||||||
|
@@ -91,7 +71,7 @@ For the majority of PyTorch users, installing from a pre-built binary via a pack | |||||
### Prerequisites | ||||||
{: #mac-prerequisites-2} | ||||||
|
||||||
1. [Optional] Install [Anaconda](#anaconda) | ||||||
1. [Optional] Install [pip](https://pypi.org/project/pip/) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I replaced this with pip but is this correct or should we remove step 1 since it's optional? |
||||||
2. Follow the steps described here: [https://github.com/pytorch/pytorch#from-source](https://github.com/pytorch/pytorch#from-source) | ||||||
|
||||||
You can verify the installation as described [above](#mac-verification). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.