Prerequisites: Python 3.
10 and Docker
This document provides step-by-step instructions for installing Python 3.10 and Docker on
Windows and macOS systems as prerequisites for the upcoming MCP-Kafka workshop.
1. Installing Python 3.10
For Windows:
1. Download Python 3.10:
- Visit the official Python website.
- Scroll down and under the 'Files' section, select the Windows installer (e.g., 'Windows
installer (64-bit)').
- Download the installer.
2. Run the Installer:
- Double-click the downloaded .exe file to start the installation.
- Important: Ensure that you check the box 'Add Python to PATH' before clicking 'Install
Now'.
- The installer will start installing Python 3.10 on your system.
3. Verify the Installation:
- Open Command Prompt (Win + R, then type 'cmd' and press Enter).
- Type python --version to verify that Python 3.10 is installed successfully.
- The output should be: 'Python 3.10.x'.
4. Install pip (if not installed automatically):
- pip should come pre-installed with Python 3.10. If not, run the following command:
python -m ensurepip --upgrade
For macOS:
1. Install Python 3.10 using Homebrew (Recommended):
- If Homebrew is not installed, open the Terminal and run:
/bin/bash -c "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Once Homebrew is installed, run the following command to install Python 3.10:
brew install python@3.10
2. Verify the Installation:
- After installation, verify by checking the Python version:
python3 --version
- The output should display 'Python 3.10.x'.
3. Configure Python 3.10 as the Default (Optional):
- If you want python3 to default to version 3.10, run the following commands:
brew link --overwrite python@3.10
4. Install pip (if not installed automatically):
- pip should be installed with Python 3.10, but if not, run:
python3 -m ensurepip --upgrade
2. Installing Docker
For Windows:
1. Download Docker Desktop:
- Go to the Docker Desktop download page (https://www.docker.com/products/docker-
desktop).
- Click on 'Download for Windows'.
2. Run the Installer:
- Once the installer is downloaded, double-click it to run.
- Follow the instructions in the installation wizard. Ensure the option to install WSL 2
(Windows Subsystem for Linux) is selected.
3. Enable WSL 2 (If not already enabled):
- Open PowerShell as Administrator and run the following command to enable WSL 2:
wsl --set-default-version 2
- Install the Ubuntu distribution from the Microsoft Store (if not already installed).
4. Start Docker Desktop:
- After installation, launch Docker Desktop from the Start menu.
- Docker may require you to sign in or create an account.
5. Verify the Installation:
- Open Command Prompt and run the following command to verify Docker is running:
docker --version
- The output should show the Docker version installed on your machine.
For macOS:
1. Download Docker Desktop:
- Go to the Docker Desktop download page (https://www.docker.com/products/docker-
desktop).
- Click on 'Download for Mac'.
2. Run the Installer:
- Once the .dmg file is downloaded, double-click it to open.
- Drag the Docker icon into the 'Applications' folder.
3. Launch Docker Desktop:
- Open the 'Applications' folder and launch Docker.
- Docker may require you to sign in or create an account.
4. Verify the Installation:
- Open the Terminal and run:
docker --version
- The output should show the Docker version installed on your machine.