How can I pretty print pip output for better readability? or What's the best way to pretty print pip

18 Replies, 1152 Views

Oh man, I feel you! The default pip output is a nightmare.

Try piping it to `column` like this:
```
pip list | column -t
```
Makes it way cleaner. If you want colors, check out `rich` (install with `pip install rich`). You can write a tiny script to pretty print pip output with it.

Also, `pip freeze --format=json` gives you JSON, which you can then pretty print with `jq`. Not perfect but better than nothing!

Messages In This Thread



Users browsing this thread: 1 Guest(s)