how to get the list of installed packages in pip code example Example: list all pip packages pip3 freeze