Python: Mac/Linux
Task 1 - Install Python
- Open a terminal window
- Run the following command to install Python:
sudo apt-get install python3
- (for Debian/Ubuntu-based systems) or
brew install python3
- (for macOS)
Task 2 - Install pip
pip is the default package manager for Python used to install, update,
and manage Python packages and dependencies.
- Open a terminal window
- Run the following command to install pip:
sudo apt-get install python3-pip
- (for Debian/Ubuntu-based systems) or
sudo easy_install pip
- (for macOS)
Task 3 - Verify
- Open a terminal window
- Run the following commands to verify installation:
python3 --version
pip3 -- version
or
python --version
pip --version
If you see version information, the installation was successful.
You may need multiple Python versions available on your machine,
depending on the requirements of your project and the external tools and
libraries required.
Python: Windows
Task 1 - Install Python (includes pip)
- Go to the Python download page at https://www.python.org/downloads/windows/
- Click the “Download Python” button for the latest version of Python
- Read and follow the official instructions here (things change; adapting is key!): https://docs.python.org/3/using/windows.html
- Run the installer file that you downloaded as an Administrator, checking both options:
- The first checkbox is checked - keep it checked.
- Also check “Add Python to PATH” during the installation process
- Click “Install Now” to install Python (which will include pip)
Task 2 - Activate the New Environment
Close and reopen the command prompt or PowerShell window to activate the new environment.
Task 3 - Verify Installation
- Open a command prompt or PowerShell window
- Run the following commands to verify installation:
python3 --version
pip3 --version
or
python --version
pip --version
If you see version information, the installation was successful.