How to change colors of pip error messages in windows powershell

442 views Asked by At

The error messages printed by pip in my Windows PowerShell are dark red on dark blue (default PowerShell background). This is quite hard to read and I'd like to change this, but I couldn't find any hint to how to do this. Even not, if this is a default in Python applied to all stderr-like output, or if it's specific to pip.

My configuration: Windows 10, Python 3.9.0, pip 20.2.3.

Thanks for your help!

1

There are 1 answers

0
Alex_S42 On

Coloring in pip is done via ANSI escape sequences. So the solution to this problem would be, to either change the way, PowerShell displays ANSI colors or the color scheme pip uses. Pip provides though a command-line switch '--no-color' which can be used to deactivate coloring the output.