Open Terminal: You can open it by searching "Terminal" in Spotlight (press Cmd + Space
and type "Terminal").
Install Homebrew: To install Homebrew, copy and paste the following command into your Terminal and press Enter
:
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
Follow the on-screen instructions to complete the installation.
<aside> <img src="/icons/new-alert_blue.svg" alt="/icons/new-alert_blue.svg" width="40px" /> Homebrew webpage for reference: https://brew.sh/
</aside>
Install Python 3: After Homebrew is installed, you can install Python 3 by running:
brew install python3
Verify Installation: Once installation is complete, you can verify that Python 3 has been installed by running:
python3 --version
This should display the installed Python version.
Go to Python's Official Website: Navigate to Python's download page.
Download Python 3 Installer: Select the most recent version of Python 3 and download the installer package.
Run the Installer: Locate the downloaded package (usually in your Downloads folder) and run it. Follow the on-screen instructions to install Python 3.
Verify Installation: Open Terminal (as described in Method 1) and copy/paste:
python3 --version
This should display the installed Python version.
Verify if you have PIP installed by pasting the following into your terminal:
pip --version
If the terminal returns the following: -bash: pip: command not found
you need to install pip first, if it returns a version number then you can skip the next step and proceed to installing the Archicad Module.
To Install PIP:
Open Terminal and copy paste the following code and press enter.
curl <https://bootstrap.pypa.io/get-pip.py> -o get-pip.py
Copy/paste the following into terminal and press enter:
python3 get-pip.py
Verify that PIP was installed by following the first step
curl <https://bootstrap.pypa.io/get-pip.py> -o get-pip.py
pip --version
python3 get-pip.py
Installing the Archicad Python Module:
Open Terminal and copy paste the following code and press enter.
pip install archicad
Install Visual Studio Code for editing your scripts: https://code.visualstudio.com/
Install Visual Studio Code Extensions: (paste the items below into the Extension tab of VSC)
ms-python.python
Willumz.generic-pseudocode