Update your pip using the command
python3 -m pip install --upgrade pip
To install a package in python you can use
pip install NameofPackage
# To ensure that the package is installed correctly
pip list installed | grep 'NameofPackage'
# Sometime the package even though it is installed. You need to upgrade the pip to see it.
pip install --upgrade pip
# or
python -m pip install --upgrade pip
Export all packages installed at pip to a file
pip3 freeze > requirments.txt
List all the packages installed at pip
pip3 list installed