1

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
Digicom
  • 61

2 Answers2

3

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
Maythux
  • 84,289
0

Another possible solution:
Install it by using:

sudo apt-get install python-colorama

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

zx485
  • 2,426
Bartek
  • 1