My guess is that you probably have two versions of Python or downloaded the wrong module.

1)Wrong Module:

pip install term color

It will install a different module. To fix it, install the correct module:

pip install termcolor

2)Two-Versions

If you have two versions of Python, you need to specify it:

i)Two versions of Python 3:

If you two versions of Python3, specify:

pip3.x install termcolor

ii)If you have Python 2 installed:

If you have Python 2 and 3 installed, specify it, as pip works for Python2, and pip3 works for Python 3:

pip3 install termcolor

If you have only Python3, or in simple words only one version of Python, You can follow the first instruction.

Answer from Mahir Islam on Stack Overflow
🌐
PyPI
pypi.org › project › termcolor
termcolor · PyPI
ANSI color formatting for output in terminal · pip install termcolor Copy PIP instructions
Discussions

virtualenv - Running a python script produces: ImportError: no module named termcolor - Stack Overflow
I created a new virtual environment: $ virtualenv --no-site-packages venv --python=python3.2 Then, I activate the virtual environment and install packages: $ source venv/bin/activate $ pip install More on stackoverflow.com
🌐 stackoverflow.com
ImportError: No module named 'termcolor'
It says "ImportError: No module named 'termcolor'" While it said just before "Successfully installed termcolor" :~/workspace/EmailHarvester (master) $ sudo pip install -r requirements.txt --user Requirement already satisfied (use --upgrade to upgrade): termcolor in /usr/local/lib/python2.7/dis... More on github.com
🌐 github.com
12
April 25, 2016
How To Use Colors in Terminal (Python)
https://github.com/tartley/colorama More on reddit.com
🌐 r/vscode
9
9
June 27, 2019
TermColor not working in python 3.6
print as in the the python builtin print() function? If thats the case you need () in python 3 as it is a function in python 2 you dont need them. py3 print(variable) py2 print variable More on reddit.com
🌐 r/learnpython
5
1
December 27, 2018
People also ask

What is Python ModuleNotFoundError and what causes it?
ModuleNotFoundError (a subclass of ImportError) is raised when Python cannot find the module you tried to import. Common causes: the package isn't installed (pip install missing), wrong virtual environment activated, typo in module name, or Python can't find your local module on the import path. The error message names exactly which module is missing.
🌐
itsourcecode.com
itsourcecode.com › home › modulenotfounderror: no module named termcolor
Fix No Module Named termcolor (2026 Python)
How do I fix 'ModuleNotFoundError: No module named X'?
Run pip install X first. If that succeeds but you still get the error, check which Python you're using (which python OR python --version) vs which pip (which pip OR pip --version), they must match. Common gotcha: pip points to system Python 3.9 but you're running python3.11 in a venv. Inside the venv, use python -m pip install X to be sure pip matches the active Python.
🌐
itsourcecode.com
itsourcecode.com › home › modulenotfounderror: no module named termcolor
Fix No Module Named termcolor (2026 Python)
Is ModuleNotFoundError the same as ImportError?
ModuleNotFoundError is a subclass of ImportError added in Python 3.6. It specifically means 'no such module exists.' Plain ImportError covers a wider set: module exists but a name inside it can't be imported (e.g. 'cannot import name X from Y'). except ImportError catches both; except ModuleNotFoundError catches only the missing-module case.
🌐
itsourcecode.com
itsourcecode.com › home › modulenotfounderror: no module named termcolor
Fix No Module Named termcolor (2026 Python)
🌐
Finxter
blog.finxter.com › home › learn python blog › how to install termcolor in python?
How to Install termcolor in Python? - Be on the Right Side of Change
July 6, 2022 - To resolve this uncertainty, you can use pip3, which will always refer to your default Python 3 installation. ... Type “pip install termcolor” (without quotes), hit Enter.
🌐
Anaconda.org
anaconda.org › anaconda › termcolor
termcolor - anaconda | Anaconda.org
anaconda/termcolor · Anaconda Verified · ANSII Color formatting for output in terminal. Compare · Overview · Files 272 · Labels 1 · Badges · Versions · 3.2.0 · To install this package, run one of the following: $conda install anaconda::termcolor · Install via Anaconda Desktop ·
🌐
GitHub
github.com › termcolor › termcolor
GitHub - termcolor/termcolor: ANSI color formatting for output in terminal · GitHub
python3 -m pip install --upgrade termcolor · git clone https://github.com/termcolor/termcolor cd termcolor python3 -m pip install . To see demo output, run: python3 -m termcolor ·
🌐
YouTube
youtube.com › language programs
Installing External Modules And TermColor | Coding for Kids Python Learn to Code with Awesome Games - YouTube
#python3coursebeginnertomasterywithprojects #JavaFX #TechWithTim #Angular #Sortingalgorithm #tableauSoftware #analytics #go #certification #react #MATLAB #am...
Published: May 8, 2021
Views: 2K
🌐
Itsourcecode
itsourcecode.com › home › modulenotfounderror: no module named termcolor
Fix No Module Named termcolor (2026 Python)
July 12, 2026 - To install it, type this command: pip install termcolor · Installing the module in a various Python version than the one you’re currently using.
Find elsewhere
🌐
PyPI
pypi.org › project › termcolor › 0.2
termcolor 0.2
JavaScript is disabled in your browser. Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Hexmos
hexmos.com › freedevtools › installerpedia › tool › python3-termcolor
python3-termcolor Installation Guide | Installerpedia
How to install python3-termcolor on your system. Step-by-step installation commands and setup instructions.
🌐
Anaconda.org
anaconda.org › conda-forge › termcolor
termcolor - conda-forge | Anaconda.org
Copied fromcf-post-staging / termcolor · Overview · Files 43 · Labels 4 · Badges · Versions · 3.3.0 · To install this package, run one of the following: $conda install conda-forge::termcolor · Choose a pre-made example or create your own: Monthly · Downloads Updates ·
🌐
GitHub
github.com › termcolor › termcolor › blob › main › README.md
termcolor/README.md at main · termcolor/termcolor
python3 -m pip install --upgrade termcolor · git clone https://github.com/termcolor/termcolor cd termcolor python3 -m pip install . To see demo output, run: python3 -m termcolor ·
Author: termcolor
🌐
YouTube
youtube.com › devtech solutions
Python Import Error ModuleNotFoundError : No Module Named Termcolor In Ubuntu Linux - YouTube
Python Import Error ModuleNotFoundError : No Module Named Termcolor In Ubuntu Linux To Install Termcolor python library in your system, type : sudo apt updat...
Published: June 7, 2020
Views: 418
🌐
YouTube
youtube.com › watch
pip install termcolor - YouTube
Download this code from https://codegive.com In this tutorial, you'll learn how to use the termcolor library in Python to add colored text to your console ou...
Published: December 30, 2023
🌐
Researchdatapod
researchdatapod.com › home › how to solve python modulenotfounderror: no module named ‘termcolor’
How to Solve Python ModuleNotFoundError: no module named ‘termcolor’ - The Research Scientist Pod
July 31, 2022 - You can install termcolor in Python 3 with python3 -m pip install termcolor. Or conda install -c conda-forge termcolor for conda environments. This tutorial goes through the exact steps to troubleshoot this error for the Windows, Mac and Linux ...
🌐
GitHub
github.com › maldevel › EmailHarvester › issues › 9
ImportError: No module named 'termcolor' · Issue #9 · maldevel/EmailHarvester
April 25, 2016 - It says "ImportError: No module named 'termcolor'" While it said just before "Successfully installed termcolor" :~/workspace/EmailHarvester (master) $ sudo pip install -r requirements.txt --user Requirement already satisfied (use --upgrade to upgrade): termcolor in /usr/local/lib/python2.7/dis...
Author: maldevel
🌐
PyPI
pypi.python.org › pypi › termcolor › 2.0.1
termcolor · PyPI
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. ... Details for the file termcolor-2.0.1.tar.gz.
Published: Sep 12, 2022
Version: 2.0.1
🌐
MacPorts
ports.macports.org › port › py37-termcolor
Install py37-termcolor on macOS with MacPorts
termcolor is a Python module to format colored output in terminal.
🌐
Mark Carter's blog
mcturra2000.wordpress.com › 2015 › 03 › 30 › simple-colored-output-in-python-3-using-termcolor
Simple colored output in python 3 using termcolor | Mark Carter's blog
March 30, 2015 - You need to install the termcolor package: pip3 install termcolor · Here is the the python code that generates the output:
🌐
CodeRivers
coderivers.org › blog › python-termcolor
Python `termcolor`: Adding Color to Your Terminal Output - CodeRivers
February 22, 2026 - If you are using Python 3 and have pip (the Python package installer) installed, you can simply run the following command in your terminal: ... If you are using a virtual environment, make sure it is activated before running the installation command. termcolor provides a set of predefined colors and attributes that can be used to style terminal text.