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