python pip version print code example Example: how to list all versions of pip in ubuntu using grep sudo apt list --installed | grep screen