by @kodeazy

ModuleNotFoundError No module named 'colorama

Home » python » ModuleNotFoundError No module named 'colorama

I was trying to print my output in green color by importing coloroma module. Below is my code

from colorama import Fore
print(Fore.GREEN,'Output in green color')

output

ModuleNotFoundError: No module named 'colorama

By installing colorama using pip the error will be resolved
execute the below command in command prompt

pip install colorama
C:\Users\XXXX>pip install colorama
Collecting colorama
  Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: colorama
Successfully installed colorama-0.4.6

Now try running the code.

from colorama import Fore
print(Fore.GREEN,'Output in green color')

output

Output in green color.