Install Colorama Python Module

Install Colorama Python Module

I import colorama in python code and I have below error :

Traceback (most recent call last):
File "stevoku.py", line 5, in <module>
import colorama
ImportError: No module named colorama

and I install colorama and I too this error. I install colorama :

apt-get install python-colorama
0

2 Answers

Install it using pip

sudo pip install colorama

If you don't have pip read How to install pip for python 3 in ubuntu 12.04 LTS


Another way is to download colorama module from here.

Now extract the package

cd colorama*

Then run

python setup.py install
2

Another possible solution:
Install it by using:

sudo apt-get install python-colorama

You need sudo if you want to use apt-get.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.