Direkt zum Hauptinhalt

Python3 auf MACOS installieren.

Python3 auf MACOS installieren.


Homebrew installieren (Eine Repo für Mac)

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

Nun brew den path in den Umgebungsvariablen hinzufügen.
Im Terminal den Befehl kopieren:

Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/<deinbenutzername>/.bash_profile
    eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh
    
    
Also kopieren und ausführen müssen wir mit Klammern:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/<deinbenutzername>/.bash_profile
    eval "$(/opt/homebrew/bin/brew shellenv)"

Nun python aus homebrew installieren

brew install python

Nun PIP installieren

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py