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.