Skip to content

Latest commit

 

History

History
137 lines (86 loc) · 3.58 KB

macOS.md

File metadata and controls

137 lines (86 loc) · 3.58 KB

Set-up instructions for MacOS

Welcome to MacOS set up repository!

Your first step in this journey is to carefully read the steps in this tutorial. You'll learn:

  • ➡️ How to set up your environment;
  1. Initial Setup
    1. MacOS Intel Setup
    2. MacOS M1 Setup

Initial Setup


MacOS Intel Setup

Some of the steps in the following sections will require Homebrew for MacOS. Homebrew will make it easier to install software that we will use later on.

Step 1: To open the terminal, choose one:

  • In Finder Finder, open the /Applications/Utilities folder, then double-click Terminal.

  • By pressing cmd + space then type terminal and press enter.

    The terminal should now be open:

Step 2: To install Homebrew for MacOS, copy and paste the following line in the terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Step 2.1: Sometimes it's necessary to install xcode command line utils. To do so, do the following command before installing homebrew:

xcode-select --install

You may be prompted to install the Command Line Developers Tools. Confirm and, once it finishes, continue installing Homebrew by pressing enter again.

Step 3: open a terminal and run the following command:

brew update --verbose

Step 4: then run the following command:

brew install git

Step 5: then run the following command:

brew install [email protected]

Step 6: then run the following command:


MacOS M1 Setup

So you got the new M1 and you're supper happy with how fast it is.. Unfortunately dealing with apple silicon requires a little get around. But don't worry, we'll be able to get there in the end.

Step 1: To open the terminal, choose one:

  • In Finder Finder, open the /Applications/Utilities folder, then double-click Terminal.

  • By pressing cmd + space then type terminal and press enter.

    The terminal should now be open:


Step 1.1: To use intel-based software, you'll need Rosetta2. Most of you should already have it installed for varied reasons. If you don't simply run the following line in the terminal:

softwareupdate --install-rosetta

This will launch the rosetta installer and you’ll have to agree to a license agreement.

Step 2: To install Homebrew x86 version, aka ibrew for MacOS, copy and paste the following line in the terminal:

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Step 2.1: Sometimes it's necessary to install xcode command line utils. To do so, do the following command before installing homebrew:

xcode-select --install

Step 3: Add an alias with ibrew to your $PATH

echo 'alias ibrew="arch -x86_64 /usr/local/bin/brew"' >> ~/.zshrc

Step 4: Activate the alterations done to .zshrc

source ~/.zshrc

Step 5: Install Python 3.8 with ibrew

ibrew install [email protected]

Step 6: Add Python 3.8 to $PATH

export PATH="/usr/local/opt/[email protected]/bin:$PATH" >> ~/.zshrc

Step 7 Re-activate the alterations done to .zshrc

source ~/.zshrc