I had this same issue on Windows 7 x64, I finally got the colors working without having to install anything new just by adding the argument convert=True
to the init call.
from colorama import init, Fore, Back, Style
init(convert=True)
print(Fore.RED + 'some red text')
More Related Contents:
- How do I copy a string to the clipboard?
- Python Ctypes – loading dll throws OSError: [WinError 193] %1 is not a valid Win32 application
- How to execute Python scripts in Windows?
- Windows cmd encoding change causes Python crash
- Windows is not passing command line arguments to Python programs executed from the shell
- Python pysftp get_r from Linux works fine on Linux but not on Windows
- Is there a way to list all the available Windows’ drives?
- Popen with conflicting executable/path
- Detecting Mouse clicks in windows using python
- Accessing CPU temperature in python
- Python running as Windows Service: OSError: [WinError 6] The handle is invalid
- How do I install SciPy on 64 bit Windows?
- Get the title of a window of another program using the process name
- Microsoft Visual C++ Compiler for Python 3.4
- How to connect to a remote Windows machine to execute commands using python?
- How to open a file with the standard application?
- What is the difference between ‘py’ and ‘python’ in the Windows terminal?
- Can’t import dll module in Python
- How to get the text cursor position in Windows?
- Making Python scripts run on Windows without specifying “.py” extension
- How to change the location of the pointer in python?
- Why python executable opens new window instance when function by multiprocessing module is called on windows
- Launch IPython notebook with selected browser
- Why can’t I handle a KeyboardInterrupt in python?
- Open File in Another Directory (Python)
- Sending ^C to Python subprocess objects on Windows
- Why does the asyncio’s event loop suppress the KeyboardInterrupt on Windows?
- Execute Commands Sequentially in Python?
- How to calculate length of string in pixels for specific font and size?
- Can’t import cv2; “DLL load failed”