Introduction
Before we start learning, we'll need to install Python. We recommend using Python 3.12+ for this course.
Before continuing, let's review a few best practices:
- Follow the directions closely and don't skip any sections.
- Use the official Python installer or a version manager like
pyenv. - Make sure
python3andpip3are accessible from your terminal.
Lesson overview
- Installing Python on your operating system.
- Verifying your installation.
- Setting up a virtual environment.
Assignment
- Windows: Download Python from python.org. Make sure to check "Add Python to PATH" during installation.
- macOS: Use Homebrew:
brew install python - Linux: Use your package manager:
sudo apt install python3 python3-pip python3-venv - Verify your installation by running
python3 --versionin your terminal. - Create your first virtual environment:
python3 -m venv myenv