11/24/2021»»Wednesday

Install Conda Mac Os X

The best laptop ever produced was the 2012-2014 Macbook Pro Retina with 15 inch display. It has a CUDA-capable GPU, the NVIDIA GeForce GT 650M. This GPU has 384 cores and 1 GB of VRAM, and is CUDA capability 3. Although puny by modern standards, it provides about a 4X speedup over the cpu for Pytorch, and is fine for learning Pytorch and prototyping. If you have a newer MacBook Pro you are out of luck, because it either has a Radeon GPU or none at all.

Outdated operating system support ¶ Operating system How to install Anaconda; macOS 10.10-10.12; Windows 7: Use the command line or graphical installers for Anaconda versions 2019.10 and earlier. Download from our archive. MacOS 10.9: Use the command line or graphical installers for Anaconda versions 5.1 and earlier. Steps to reproduce on Mac OS X: Install Anaconda with Miniconda3-1.6.2-MacOSX-x8664.sh Execute: conda install anaconda The following traceback occurs during the linking step of the installation: Traceback (most recent call last): File '.

The standard Mac distribution of Pytorch does not support CUDA, but it is supported if you compile Pytorch from source. There are numerous preliminary steps and 'gotchas'. Here is what you need to do. Thanks to Jack Dyson for this write up based on an earlier version that I published earlier. These instructions have been tested for:

OS : MacOS High Sierra 10.13.6 (17G14042)
GPU Driver: NVIDIA Web Driver 387.10.10.10.4.140
GPU CUDA Driver Version: 418.163
Xcode Version: 10.1 (10B61)

Downgrade to High Sierra

Check that you are running Mac OS X High Sierra (10.13.6). If you have an older version, upgrade. If you have a newer version you will need to downgrade; Apple banished CUDA with Mojave and later versions of the OS. Downgrading OS X requires creating a bootable USB memory stick installer and erasing your laptop's hard disk.

Install Xcode

Mac

Check that you have installed Xcode version 10.1. If you have a newer version or none at all, download it from the Apple Developer site. Rename any other version of Xcode you have installed, and then copy it to /Applications. Open Xcode, and under preferences, select the 10.1 command line tools. Close Xcode and open a terminal. Run

xcode-select --install
to reinstall the command line tools, because sometimes the Xcode application fails to install certain header files.

Install NVIDIA Drivers

Install the NVIDIA Quadro and Geforce OS X Driver 387.10.10.10.40.140.

Add to your .profile and reboot:

export PATH=/Developer/NVIDIA/CUDA-10.0/bin${PATH:+:${PATH}}
export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH

Install NVIDIA cuDNN 7.6.5.

Install Conda

Install Anaconda. Create an environment named ptc that includes pip, activate it, and install libraries:
conda create --name ptc python=3.7
conda activate ptc
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi typing_extensions future six requests dataclasses
conda install pkg-config libuv

Build Pytorch

Now you are ready to build Pytorch with Cuda!

conda activate ptc
git clone --recursive https://github.com/pytorch/pytorch

Finally you build:

cd pytorch
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-'$(dirname $(which conda))/../'}
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
Install

Post Installation

conda activate ptc
pip install torchvision

Reboot and test that pytorch with CUDA is working:

conda activate ptc
python
import torch
torch.cuda.is_available()
If python does not print 'true', something has gone wrong.

Install ptc as a kernel for jupyter notebooks.

conda deactivate
conda install ipykernel
python -m ipykernel install --user --name ptc --display-name 'Python 3.7 (ptc)'

When a program first invokes CUDA, a warning message will be printing stating that the GPU is too old. The message can be ignored - CUDA will indeed work! In order to eliminate the message, edit the file

~/anaconda3/envs/ptc/lib/python3.6/site-packages/torch/cuda/__init__.py
and in the definition of the function _check_capability() eliminate the string
capability(3,0) or

Mac Os X Download For Windows

Download Pytorch examples and compare time required with and without cuda. Note that these examples require Torchvision.

git clone https://github.com/pytorch/examples
cd examples/mnist
conda activate ptc
time python main.py >/dev/null
real 1m38.430s
user 2m6.163s
sys 0m7.762s
time python main.py --no-cuda >/dev/null
real 5m47.750s
user 37m22.609s
sys 1m23.813s

For the non-CUDA case, user time is greater than real time because Pytorch makes use of all 8 cpu hyperthread cores.

Congratulations, you are ready to set the deep learning world on fire!

Henry Kautz, 21 December 2020

Review the system requirements listed below before installing Anaconda Individual Edition. If you don’t want the hundreds of packages included with Anaconda, you can install Miniconda, amini version of Anaconda that includes just conda, its dependencies, and Python.

System requirements

  • License: Free use and redistribution under the terms of the EULA for Anaconda Individual Edition.
  • Operating system: Windows 8 or newer, 64-bit macOS 10.13+, or Linux, including Ubuntu, RedHat, CentOS 7+, and others.
  • If your operating system is older than what is currently supported, you can find older versions of the Anaconda installers in our archive that might work for you. See Using Anaconda on older operating systems for version recommendations.
  • System architecture: Windows- 64-bit x86, 32-bit x86; MacOS- 64-bit x86; Linux- 64-bit x86, 64-bit aarch64 (AWS Graviton2 / arm64), 64-bit Power8/Power9, s390x (Linux on IBM Z & LinuxONE).
  • Minimum 5 GB disk space to download and install.

On Windows, macOS, and Linux, it is best to install Anaconda for the local user,which does not require administrator permissions and is the most robust type ofinstallation. However, if you need to, you can install Anaconda system wide,which does require administrator permissions.

Silent mode install

Capitan

You can use silent mode toautomatically accept default settings and have no screen prompts appear duringinstallation.

Using Anaconda on older operating systems

We recommend upgrading your operating system. Most OS that are no longersupported in the latest Anaconda are no longer getting security updates.Upgrading your OS allows you to get the latest packages, performanceimprovements, bug fixes, etc.

To use Anaconda on older operating systems, download from our archive.You will not be able to use conda to update or install packages beyondthe Anaconda version noted in the table below, unless you limit it toversions available at the time that particular version of Anacondawas released.You can see what was available by checking the package table archives.

Outdated operating system support
Operating systemHow to install Anaconda
macOS 10.10-10.12; Windows 7Use the command line or graphical installers for Anaconda versions 2019.10 and earlier. Download from our archive.
macOS 10.9

Use the command line or graphical installers for Anaconda versions5.1 and earlier.

Note

Qt and other packages released after Anaconda Distribution 5.1 (February 15th, 2018)may not work on macOS 10.9, so it may be necessary to not update certain packages beyond this point.

macOS 10.7 and 10.8Use the command line installers for Anaconda versions 4.2 and earlier.
macOS 10.5 and 10.6

Use the command line installers for Anaconda versions 1.8 and earlier.

Windows XPUse Anaconda versions 2.2 and earlier.
Centos6 (or equivalent)Use Anaconda versions 2020.11 and earlier.
Centos5 (or equivalent)Use Anaconda versions 4.3 and earlier.

Installing Anaconda on a non-networked machine (air gap)

MacMac os x versions

Install Conda Mac Os X Update

  1. Obtain a local copy of the appropriate Anaconda installer for the non-networked machine. You can copy the Anaconda installer to the target machine using many different methods including a portable hard drive, USB drive, or CD.
  2. After copying the installer to the non-networked machine, follow the detailed installation instructions for your operating system.

Note

You can install offline copies of both docs.anaconda.com and enterprise-docs.anaconda.com by installing the conda package anaconda-docs: condainstallanaconda-docs

You can install offline copies of documentation for many of Anaconda’s open-source packages by installing the conda package anaconda-oss-docs: condainstallanaconda-oss-docs

Other ways to get Anaconda or Miniconda

Mac Os X 10.7 Download Free

You can find the official Anaconda or Miniconda AMIs on the AWS Marketplace.

You can find the official Anaconda and Miniconda Docker images on Docker Hub.

If you have a CDH cluster, you can install the Anaconda parcel using Cloudera Manager. The Anaconda parcel provides a static installation of Anaconda, based on Python 2.7, that can be used with Python and PySpark jobs on the cluster.

Install Conda Mac Os X Download

Troubleshooting

Install Conda Mac Os X Catalina

If you experience errors during the installation process,review our Troubleshooting topics.

Most Viewed Posts