Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Colorama in Python?

I downloaded the colorama module for python and I double clicked the setup.py. The screen flashed, but when I try to import the module, it always says 'No Module named colorama'

I copied and pasted the folder under 'C:\Python26\Lib\site-packages' and tried to run the setup from there. Same deal. Am I doing something wrong?

Thanks, Mike

like image 594
Mike Avatar asked Mar 23 '12 21:03

Mike


1 Answers

Installing with pip is almost always the way to go. It will handle downloading the package for you, as well as any dependencies. If you don't have pip, see http://www.pip-installer.org/en/latest/installing.html

Then

pip install colorama

or

sudo pip install colorama

Ba-boom! Done.

like image 103
Travis Bear Avatar answered Oct 06 '22 07:10

Travis Bear