Reputation: 4415
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?
Upvotes: 26
Views: 199757
Reputation: 178
You can install for a specific version of Python using the following command:
python3 -m pip install colorama
In case you need to root privileges, for Linux/macOS:
sudo -H python3 -m pip install colorama
Upvotes: 1
Reputation: 6016
Use the Anaconda Environment and use the following command
pip install colorama
Upvotes: 1
Reputation: 1
According to documentation you should always run setup.py for colorama from its install directory. https://github.com/tartley/colorama/issues/41
Upvotes: -1
Reputation: 39
Run the following command in Google shell:
sudo pip3 install colorama
Upvotes: 3
Reputation: 988
For Windows, you can use this in the command prompt:
python get-pip.py
pip install colorama
pip uninstall colorama
You should also check the official site out: Installing Python Modules
Upvotes: 0
Reputation: 19
If you got the below error on ubuntu 18.04 ModuleNotFoundError: No module named 'rsa'
, then try:
pip3 install colorama
Upvotes: 1
Reputation: 9
I have also experienced this problem. Following the instructions to install sudo pip install colorama
I receive the message:
Requirement already satisfied: colorama in /usr/lib/python2.7/dist-packages.
The problem for me is that I am using python3 in my header code #!usr/bin/env python3
.
Changing this to#!usr/bin/env python
works - sorry, I don't know how to get it to work with python 3!
Upvotes: 0
Reputation: 1140
Re-installing colorama might not work right away. If there is a colorama .egg in site-packages
, you need to remove that file first and then pip install colorama
.
Upvotes: 1
Reputation: 1
if you have easy_install (in most case that will work)
sudo easy_install -U colorama
if you installed pip
sudo pip install -U colorama
Upvotes: 0
Reputation: 136665
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
Upvotes: 4
Reputation: 13869
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.
Upvotes: 37
Reputation: 11896
Python packages are installed using setup.py by entering the following command from a command line:
python setup.py install
Upvotes: 11