Version: Dec 20, 2024

Python Basics

Overview

Times keep changing for the tools we use. Since so many solutions are relaying on Python, Python has gotten to the point where it needs to be isolated so packages don't negatively impact each other.

This guide hopes to help those who run into issues with Python. Please note this guide is from the perspective of MacOS Sequoia.


Checking Python Version

Locate Python

Installing Python

Check Home Brew

Updating PATH

Install a Specific Version of Python

Setting up a Virtual Environment

1. Prerequisites

2. Create a Virtual Environment

3. Activate the Virtual Environment

4. Install Packages

5. Re-Activate the Environment

6. Save and Reuse Dependencies

7. Using Virtual Environments with IDEs

By using virtual environments, you can keep your Python projects organized and avoid dependency conflicts. Cheers!