python program to find the package and to install if not available in linux code example
Example: pip upgrade python
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}