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
🌐
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 - In this case, try "pip3 install termcolor" or “python -m pip install termcolor“. Wait for the installation to terminate successfully. It is now installed on your Windows machine.
🌐
PyPI
pypi.org › project › termcolor
termcolor · PyPI
pip install termcolor Copy PIP instructions · 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 ·
Discussions

python - No module named 'termcolor' - Stack Overflow
Take termcolor.py out of c:\python27\lib\site-packages and place in c:\python27\lib\ might seem strange but it has a great chance to work. In Linux, I use this command, if using windows maybe see an equivalent. More on stackoverflow.com
🌐 stackoverflow.com
python - Why does termcolor output control characters instead of colored text in the Windows console? - Stack Overflow
I just installed termcolor for Python 2.7 on Windows. When I try to print colored text, I get the color codes instead. from termcolor import colored print colored('Text text text', 'red') Here is ... More on stackoverflow.com
🌐 stackoverflow.com
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)
🌐
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 ·
🌐
Itsourcecode
itsourcecode.com › home › modulenotfounderror: no module named termcolor
Fix No Module Named termcolor (2026 Python)
July 12, 2026 - # Standard pip install pip install termcolor # In a virtual environment (recommended) python -m venv .venv source .venv/bin/activate # or .venv\Scripts\activate on Windows pip install termcolor # With uv (faster alternative) uv pip install termcolor
Find elsewhere
🌐
Cygwin
cygwin.com › packages › summary › python-termcolor-src.html
Cygwin Package Summary for python-termcolor (source)
Install Cygwin · Update Cygwin · Search Packages · Licensing Terms · Cygwin/X · Community · Reporting Problems · Mailing Lists · Newsgroups · IRC channels · Gold Stars · Mirror Sites · Donations · Documentation · FAQ · User's Guide · API Reference · Acronyms · Contributing · Source in Git · Cygwin DLL · Cygwin Packages · Cygwin Apps · Related Sites · Get that Linux feeling - on Windows...
🌐
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
🌐
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.
🌐
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
🌐
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
🌐
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
🌐
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 ·
🌐
Cygwin
cygwin.com › packages › summary › python3-termcolor.html
Cygwin Package Summary for python3-termcolor
Install Cygwin · Update Cygwin · Search Packages · Licensing Terms · Cygwin/X · Community · Reporting Problems · Mailing Lists · Newsgroups · IRC channels · Gold Stars · Mirror Sites · Donations · Documentation · FAQ · User's Guide · API Reference · Acronyms · Contributing · Source in Git · Cygwin DLL · Cygwin Packages · Cygwin Apps · Related Sites · Get that Linux feeling - on Windows...
🌐
PyPI
pypi.org › project › colorama
colorama · PyPI
from colorama import just_fix_windows_console from termcolor import colored # use Colorama to make Termcolor work on Windows too just_fix_windows_console() # then use Termcolor for all colored text output print(colored('Hello, World!', 'green', 'on_red'))
🌐
CodeRivers
coderivers.org › blog › python-termcolor
Python `termcolor`: Adding Color to Your Terminal Output - CodeRivers
February 22, 2026 - The termcolor library in Python comes to the rescue by allowing developers to add colors and styles to their terminal output. This makes the output more visually appealing, easier to read, and helps in highlighting key details. Whether you are writing scripts for system administration, data analysis, or just for fun, termcolor can enhance the user experience of your command-line applications. ... Before you can start using termcolor, you need to install it.
🌐
Cygwin
cygwin.com › packages › summary › python37-termcolor.html
Cygwin Package Summary for python37-termcolor
May 4, 2021 - Install Cygwin · Update Cygwin · Search Packages · Licensing Terms · Cygwin/X · Community · Reporting Problems · Mailing Lists · Newsgroups · IRC channels · Gold Stars · Mirror Sites · Donations · Documentation · FAQ · User's Guide · API Reference · Acronyms · Contributing · Source in Git · Cygwin DLL · Cygwin Packages · Cygwin Apps · Related Sites · Get that Linux feeling - on Windows...
🌐
GitHub
github.com › hfeeki › termcolor
GitHub - hfeeki/termcolor: fork of termcolor Python library · GitHub
fork of termcolor Python library. Contribute to hfeeki/termcolor development by creating an account on GitHub.
Author: hfeeki
🌐
GitHub
github.com › tartley › colorama
GitHub - tartley/colorama: Simple cross-platform colored terminal text in Python · GitHub
from colorama import just_fix_windows_console from termcolor import colored # use Colorama to make Termcolor work on Windows too just_fix_windows_console() # then use Termcolor for all colored text output print(colored('Hello, World!', 'green', 'on_red'))