some pip versions produce non-standard format output, to ensure it works on multiple OS architectures, the recommended way would be: pip list --format=freeze