Skip to content
Advertisement

New color terminal prograss bar in pip

I find the new version pip(package installer for Python) has a colorful progress bar to show the downloading progress. How can I do that?

Like this: enter image description here

Advertisement

Answer

pip itself is using the rich package! In particular, their progress bar docs show this example:

from rich.progress import track

for n in track(range(n), description="Processing..."):
    do_work(n)
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement