installing pip commands in python code example Example: pip upgrade python pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}