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
Solution 1:
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.
Solution 2:
Python packages are installed using setup.py by entering the following command from a command line:
python setup.py install
Solution 3:
I just a weird problem with awscli
and colorama
. Searching for an answer, I came here. The solution was:
$ sudo -H pip uninstall colorama
$ sudo -H pip install colorama
Solution 4:
Run the following command in Google shell:
sudo pip3 install colorama