pip upgrade pip version code example
Example 1: upgrading a pip package while importing it
pip install [package_name] --upgrade
Example 2: pip upgrade python
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
pip install [package_name] --upgrade
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}