From 7fce212c2acaf7a3de18e18f0a324bc54e4ac3d1 Mon Sep 17 00:00:00 2001 From: Roman Tuomisto <112699985+roman-gyver@users.noreply.github.com> Date: Wed, 7 Sep 2022 09:56:52 +0300 Subject: [PATCH] Update environment.md --- setup/environment.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/setup/environment.md b/setup/environment.md index 1b0bdab..9f684f4 100644 --- a/setup/environment.md +++ b/setup/environment.md @@ -190,7 +190,7 @@ Optimise gem sizes: echo "gem: --no-document" >> ~/.gemrc ``` -## Install Python +## Install Python (Intel chip Mac Books) Check if you need it first: `python -V` @@ -210,6 +210,29 @@ source ~/.zshrc CHECK: +``` +python -V +``` +## Install Python (M1 chip Mac Books) + +Check if you need it first: `python -V` or `python3 -V` + +If yes: + +``` +brew install python +``` + +Add path to new python bin to your `~/.zshrc` ie: + +``` +echo -n "\nalias python=/usr/bin/python3" >> ~/.zshrc + +source ~/.zshrc +``` + +CHECK: + ``` python -V ```