Download Anaconda For Macbook Pro

Posted : admin On 11/24/2021

TL;DR 2017 Macbook Pro: connect to GTX 1080 Ti graphic card, install CUDA and CUDNN, build tensorflow 1.3 with gpu support.

  1. Zoom Download For Macbook Pro
  2. Download Anaconda For Macbook Pro
  3. Download Anaconda For Macbook Pro 2020
  4. Safari Download For Macbook Pro

Zoom Download For Macbook Pro

Testing conducted by Apple in October 2020 on production 1.4GHz quad-core Intel Core i5-based 13-inch MacBook Pro systems with 8GB RAM, 256GB SSD, and prerelease macOS Big Sur. Systems tested with WPA2 Wi-Fi network connection while running on battery power, with display brightness set to 12 clicks from bottom or 75%. This tutorial describes the different options to install and uninstall Python within various package managers (which helps you find and install Python packages). Here I’m taking a “deep dive” approach because I haven’t seen one on the internet. Download Mac OS X 64-bit/32-bit x86-64/i386 Installer; Python 2.6.9 - Oct. No files for this release. Python 3.2.5 - May 15, 2013. Download Mac OS X 32-bit. Download Anaconda from here: Downloads - Anaconda. The Python 3.6 version is preferable unless you know that you want to use libraries that have not been ported into Python 3. So any MacBook is a perfect choice for a data scientist. I specifically chose (and recommend) the MacBook Pro 13″ because it’s a good transition between the light-weight Air and the more powerful MacBook Pro 15″ (and 16″). I carry around my laptop in my backpack quite often, so I wanted a lighter computer.

Introduction

Download Anaconda For Macbook Pro

As I got more involved with large scale deep learning, I decided to install ML libraries with GPU support. Unfortunately, the available documentation for supporting GPU on a Macbook Pro is limited and there is no official solution to even connect Nvidia GPU to Macbook. Thanks to several the online posts, I successfully installed tensorflow on my machine. There were a few issues raised because of versions of libraries involved. So I would clarify as much as possible on those.

Spec

Equipments I had:

  • 2017 MacBook Pro, 13-inch without touch bar. OS build number 16F2073
  • GPU card: MSI GTX 1080 Ti.
  • eGPU closure: Akitio Node Thunderbolt 3 External, Bought from BH Photo Video.

Download Anaconda For Macbook Pro 2020

Environment I used:

  • homebrew 1.3.4
  • anaconda + python 3.6
  • I created a env in anaconda use conda create --name [env_name] python=3.5 numpy scipy matplotlib theano keras ipython jupyter and pip 9.0.1 comes with py35.

Resources

I relied on these great tutorials to set things up.

Download Anaconda For Macbook Pro

Bash Profile

Throughout the process I added a bunch of paths to my bash profile. Here is a summary of them:

Safari Download For Macbook Pro

Steps

  1. Install CUDA from Nvidia and follow its official instructions. Or, as suggested by this post, install with brew tap caskroom/drivers & brew cask install cuda. I installed from Nvidia, chose CUDA 8.0.61 and patched it to 8.0.62.

  2. Connect Graphic Card to Akitio Node and to laptop, screw-driver needed. Youtube Video

  3. Disable SIP (System Integrity Protection). Tutorial

  4. Change OS Build Version (required for Macbook with build 16F2073). Discussion on this. In short, open the file /System/Library/CoreServices/SystemVersion.plist and change the build number from 16F2073 to 16F73.

  5. Download the automate-eGPU.sh script and execute it.

  6. After restart, I upgrade CUDA to 8.0.90

  7. Downgrade Xcode to 8.2 and corresponding command line tools. You could download them from Apple Developer website. Newer versions of clang would give you error when compiling CUDA samples.

    Verify by clang —version and pkgutil --pkg-info=com.apple.pkg.CLTools_Executables. Expecting Apple LLVM version 8.0.0 (clang-800.0.42.1) and version: 8.2.0.0.1.1480973914.

  8. Add CUDA binaries to path

  9. Verify CUDA installation by running deviceQuery

    should detect the device and yield CUDA Capability Major/Minor version number: 6.1 ( I have a Geforce GTX 1080 Ti).

  10. Install cuDNN v6.0 for Mac OS

    • Download and unzip cuDNN 6.0 for MacOS from NVIDIA

    • Move the cuDNN libraries to cuda:

    • Add to path
    • Verify the installation by echo -e '#include'cudnn.h'n void main(){}' nvcc -x c - -o /dev/null -I/usr/local/cuda/include -L/usr/local/cuda/lib -lcudnn.

    • I got a few warning but no error.

  11. Installing tensorflow from Source, following the official doc except the following:

    • Bazel version: The most recent r1.3 branch of tensorflow asks for bazel version 0.5.4. I got xxx file not built error when building with bazel 0.5.4. Therefore, I cd tensorflow & git checkout b46340f and use bazel 0.4.5 that comes with conda to build.

    • Set the environment flag

    • After checkout, comment out the BUILD file requiring OpenMP: open tensorflow/third_party/gpus/cuda/BUILD.tpl and comment out # linkopts = [“-lgomp”]

    • Checksum mismatchdiscussion on Github. Workaround: If it happens, comment out the checksum line in tensorflow/workspace.bzl that says sha256=repo_ctx_attr.sha256.

    • run the configuration, opt in for CUDA support, and substitute TF_CUDA_COMPUTE_CAPABILITIES with your output of deviceQuery.

    • bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package --verbose_failures --action_env PATH --action_env LD_LIBRARY_PATH --action_env DYLD_LIBRARY_PATH

      Took about 50 minutes and huge RAM consumption. Expecting no error.

    • Build the pip packagebazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

    • Install the pip packagesudo pip install /tmp/tensorflow_pkg/tensorflow-1.3.0-.whl

  12. ALL DONE!

    • Test your installment by running the cutest MNIST toy

    • See, in your terminal, that tensorflow is running!