how to upgrade packages with pip code example
Example 1: pip upgrade package
pip install Django --upgrade
Example 2: update pip
sudo pip3 install --upgrade pip
Example 3: pip upgrade package
pip install Django -U
Example 4: upgrading a pip package while importing it
pip install [package_name] --upgrade