Skip to content

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

Open
wants to merge 4 commits into
base: site
Choose a base branch
from
Open
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
38 changes: 2 additions & 36 deletions _get_started/installation/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,10 @@ If you decide to use APT, you can run the following command to install it:
sudo apt install python
```

> If you use [Anaconda](#anaconda) to install PyTorch, it will install a sandboxed version of Python that will be used for running PyTorch applications.

### Package Manager
{: #linux-package-manager}

To install the PyTorch binaries, you will need to use one of two supported package managers: [Anaconda](https://www.anaconda.com/download/#linux) or [pip](https://pypi.org/project/pip/). Anaconda is the recommended package manager as it will provide you all of the PyTorch dependencies in one, sandboxed install, including Python.

#### Anaconda

To install Anaconda, you will use the [command-line installer](https://www.anaconda.com/download/#linux). Right-click on the 64-bit installer link, select `Copy Link Location`, and then use the following commands:

```bash
# The version of Anaconda may be different depending on when you are installing`
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh
# and follow the prompts. The defaults are generally good.`
```

> You may have to open a new terminal or re-source your `~/.bashrc `to get access to the `conda` command.

To install the PyTorch binaries, you will need to use the supported package manager: [pip](https://pypi.org/project/pip/).
#### pip

*Python 3*
Expand All @@ -75,24 +59,6 @@ sudo apt install python3-pip
## Installation
{: #linux-installation}

### Anaconda
{: #linux-anaconda}

#### No CUDA/ROCm

To install PyTorch via Anaconda, and do not have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) or [ROCm-capable](https://rocm.docs.amd.com/) system or do not require CUDA/ROCm (i.e. GPU support), in the above selector, choose OS: Linux, Package: Conda, Language: Python and Compute Platform: CPU.
Then, run the command that is presented to you.

#### With CUDA

To install PyTorch via Anaconda, and you do have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) system, in the above selector, choose OS: Linux, Package: Conda and the CUDA version suited to your machine. Often, the latest CUDA version is better.
Then, run the command that is presented to you.

#### With ROCm

PyTorch via Anaconda is not supported on ROCm currently. Please use pip instead.


### pip
{: #linux-pip}

Expand Down Expand Up @@ -148,7 +114,7 @@ For the majority of PyTorch users, installing from a pre-built binary via a pack
### Prerequisites
{: #linux-prerequisites-2}

1. Install [Anaconda](#anaconda) or [Pip](#pip)
1. Install [Pip](#pip)
2. If you need to build PyTorch with GPU support
a. for NVIDIA GPUs, install [CUDA](https://developer.nvidia.com/cuda-downloads), if your machine has a [CUDA-enabled GPU](https://developer.nvidia.com/cuda-gpus).
b. for AMD GPUs, install [ROCm](https://rocm.docs.amd.com/), if your machine has a [ROCm-enabled GPU](https://rocm.docs.amd.com/)
Expand Down
30 changes: 5 additions & 25 deletions _get_started/installation/mac.md
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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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 macOS may vary in terms of processing time.


## Prerequisites
{: #mac-prerequisites}
Expand All @@ -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*
Expand All @@ -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:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
To install PyTorch via pip, use the following the command, depending on your Python version:
To install PyTorch via pip, use the following command, depending on your Python version:


```bash
# Python 3.x
Expand Down Expand Up @@ -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/)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The 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).
28 changes: 2 additions & 26 deletions _get_started/installation/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ As it is not installed by default on Windows, there are multiple ways to install

* [Chocolatey](https://chocolatey.org/)
* [Python website](https://www.python.org/downloads/windows/)
* [Anaconda](#anaconda)

> If you use Anaconda to install PyTorch, it will install a sandboxed version of Python that will be used for running PyTorch applications.

> If you decide to use Chocolatey, and haven't installed Chocolatey yet, ensure that you are running your command prompt as an administrator.

Expand All @@ -39,35 +36,14 @@ choco install python
### Package Manager
{: #windows-package-manager}

To install the PyTorch binaries, you will need to use at least one of two supported package managers: [Anaconda](https://www.anaconda.com/download/#windows) and [pip](https://pypi.org/project/pip/). Anaconda is the recommended package manager as it will provide you all of the PyTorch dependencies in one, sandboxed install, including Python and `pip.`

#### Anaconda

To install Anaconda, you will use the [64-bit graphical installer](https://www.anaconda.com/download/#windows) for PyTorch 3.x. Click on the installer link and select `Run`. Anaconda will download and the installer prompt will be presented to you. The default options are generally sane.

To install the PyTorch binaries, you will need to use the supported package manager: [pip](https://pypi.org/project/pip/).
#### pip

If you installed Python by any of the recommended ways [above](#windows-python), [pip](https://pypi.org/project/pip/) will have already been installed for you.

## Installation
{: #windows-installation}

### Anaconda
{: #windows-anaconda}

To install PyTorch with Anaconda, you will need to open an Anaconda prompt via `Start | Anaconda3 | Anaconda Prompt`.

#### No CUDA

To install PyTorch via Anaconda, and do not have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) system or do not require CUDA, in the above selector, choose OS: Windows, Package: Conda and CUDA: None.
Then, run the command that is presented to you.

#### With CUDA

To install PyTorch via Anaconda, and you do have a [CUDA-capable](https://developer.nvidia.com/cuda-zone) system, in the above selector, choose OS: Windows, Package: Conda and the CUDA version suited to your machine. Often, the latest CUDA version is better.
Then, run the command that is presented to you.


### pip
{: #windows-pip}

Expand Down Expand Up @@ -126,7 +102,7 @@ For the majority of PyTorch users, installing from a pre-built binary via a pack
### Prerequisites
{: #windows-prerequisites-2}

1. Install [Anaconda](#anaconda)
1. Install [pip](https://pypi.org/project/pip/)
2. Install [CUDA](https://developer.nvidia.com/cuda-downloads), if your machine has a [CUDA-enabled GPU](https://developer.nvidia.com/cuda-gpus).
3. If you want to build on Windows, Visual Studio with MSVC toolset, and NVTX are also needed. The exact requirements of those dependencies could be found out [here](https://github.com/pytorch/pytorch#from-source).
4. Follow the steps described here: [https://github.com/pytorch/pytorch#from-source](https://github.com/pytorch/pytorch#from-source)
Expand Down