how to instal pip in python code example

Example 1: pip installer for mac

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Example 2: python pip install

## To install Pip, first download get-pip.py from:
https://bootstrap.pypa.io/get-pip.py
  
## Then run the following command in the command line
## in the folder where the file has been saved.
python get-pip.py

Example 3: pip install

python get-pip.py

Example 4: install packages with pip from python

pip3 install <package_name>