From d5157bc85be113ad284a4c4e0440d92f62d6d3cb Mon Sep 17 00:00:00 2001 From: Camyll Harajli Date: Wed, 30 Apr 2025 13:34:59 -0700 Subject: [PATCH 1/6] remove conda references --- _get_started/installation/linux.md | 38 ++-------------------------- _get_started/installation/mac.md | 28 +++----------------- _get_started/installation/windows.md | 28 ++------------------ 3 files changed, 8 insertions(+), 86 deletions(-) diff --git a/_get_started/installation/linux.md b/_get_started/installation/linux.md index 35deaa0cde02..7461e2dfcd26 100644 --- a/_get_started/installation/linux.md +++ b/_get_started/installation/linux.md @@ -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* @@ -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} @@ -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/) diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md index 5294b865a38c..32e9b1ba514d 100644 --- a/_get_started/installation/mac.md +++ b/_get_started/installation/mac.md @@ -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,15 +32,6 @@ 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} @@ -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/) 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). diff --git a/_get_started/installation/windows.md b/_get_started/installation/windows.md index 2d0ec5c041f5..8000e9cddbc6 100644 --- a/_get_started/installation/windows.md +++ b/_get_started/installation/windows.md @@ -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. @@ -39,12 +36,7 @@ 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. @@ -52,22 +44,6 @@ If you installed Python by any of the recommended ways [above](#windows-python), ## 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} @@ -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) From b93082173f2b1d28498be82c97d7d0c6ed0ada56 Mon Sep 17 00:00:00 2001 From: Camyll Harajli Date: Wed, 30 Apr 2025 13:59:43 -0700 Subject: [PATCH 2/6] try and generate preview with change --- _get_started/installation/mac.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md index 32e9b1ba514d..266f8cfaa7dc 100644 --- a/_get_started/installation/mac.md +++ b/_get_started/installation/mac.md @@ -10,6 +10,7 @@ PyTorch can be installed and used on macOS. Depending on your system and GPU cap PyTorch is supported on macOS 10.15 (Catalina) or above. + ### Python {: #mac-python} From 7bedfa0a1dd8dde854b14375557489672377c5f0 Mon Sep 17 00:00:00 2001 From: Camyll Harajli Date: Wed, 30 Apr 2025 14:07:58 -0700 Subject: [PATCH 3/6] remove space now that preview is working --- _get_started/installation/mac.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md index 266f8cfaa7dc..32e9b1ba514d 100644 --- a/_get_started/installation/mac.md +++ b/_get_started/installation/mac.md @@ -10,7 +10,6 @@ PyTorch can be installed and used on macOS. Depending on your system and GPU cap PyTorch is supported on macOS 10.15 (Catalina) or above. - ### Python {: #mac-python} From 106b092e8a9244f876112c7bb9a04f72d286fbec Mon Sep 17 00:00:00 2001 From: Camyll Harajli Date: Wed, 30 Apr 2025 14:20:05 -0700 Subject: [PATCH 4/6] change pip language to match # of commands --- _get_started/installation/mac.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md index 32e9b1ba514d..8cb69d062112 100644 --- a/_get_started/installation/mac.md +++ b/_get_started/installation/mac.md @@ -35,7 +35,7 @@ If you installed Python via Homebrew or the Python website, `pip` was installed ### 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: ```bash # Python 3.x From 41b1b3a5ad71c4a2e92973235bba5ab54b3123b6 Mon Sep 17 00:00:00 2001 From: Camyll Harajli Date: Thu, 1 May 2025 08:55:56 -0700 Subject: [PATCH 5/6] Update _get_started/installation/mac.md Co-authored-by: Svetlana Karslioglu --- _get_started/installation/mac.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md index 8cb69d062112..023bdc897bc3 100644 --- a/_get_started/installation/mac.md +++ b/_get_started/installation/mac.md @@ -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 macOS may vary in terms of processing time. ## Prerequisites {: #mac-prerequisites} From b85d1a03842073be0c63e34c89ab8a76f2efee24 Mon Sep 17 00:00:00 2001 From: Camyll Harajli Date: Thu, 1 May 2025 08:56:09 -0700 Subject: [PATCH 6/6] Update _get_started/installation/mac.md Co-authored-by: Svetlana Karslioglu --- _get_started/installation/mac.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_get_started/installation/mac.md b/_get_started/installation/mac.md index 023bdc897bc3..d3803a1ee278 100644 --- a/_get_started/installation/mac.md +++ b/_get_started/installation/mac.md @@ -35,7 +35,7 @@ If you installed Python via Homebrew or the Python website, `pip` was installed ### pip {: #mac-pip} -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