Check whether Python is installed: `python –version` or `python3 –version`
Check whether pip is installed: `pip –version` or `pip3 –version`
If pip is already available, use it directly
On Windows, run: `python -m ensurepip –upgrade`
On macOS or Linux, run: `python3 -m ensurepip –upgrade`
Upgrade pip after installation: `python -m pip install –upgrade pip`
On Windows, if `python` is not recognized, reinstall Python from python.org and select “Add Python to PATH”
On Ubuntu/Debian, run: `sudo apt update`
On Ubuntu/Debian, run: `sudo apt install python3-pip`
On Fedora, run: `sudo dnf install python3-pip`
On CentOS/RHEL, run: `sudo yum install python3-pip`
On Arch Linux, run: `sudo pacman -S python-pip`
On macOS with Homebrew, run: `brew install python`
Verify installation: `pip –version` or `pip3 –version`
Use pip with Python if needed: `python -m pip install package-name`
