In previous courses, we've written our Python code in the browser, but now we're going to install Python on our local machine, and use it just like you will as a professional developer.
There are two versions of this lesson, one for WSL/Linux users, and one for macOS users.
If you're on Linux (or Windows WSL 2), you may already have Python installed. You can verify this by running:
python3 --version
If that worked, you can skip ahead!
If it didn't, we'll use the default package manager, apt, to download python.
sudo apt update
sudo apt install -y python3
Make sure to read the installation logs in case there's some step you're missing!
python3 --version
You should get back a valid Python 3.x version.
Run and submit the CLI tests.
We'll use the Homebrew package manager to install Python.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
export PATH="/opt/homebrew/bin:$PATH"
brew install python3
python3 --version
You should get back a valid Python 3.x version.
Run and submit the CLI tests.