'ModuleNotFoundError: No module named 'term'

Screenshot of Jupyter notebook

What is wrong here? I have python 3.8 but keep getting the error message above when I try importing 'colored' from the termcolor library. What should I try? Thank you.



Solution 1:[1]

because it is not installed into anakonda's dependencies . (You may installed them into another Python dependencies). at first determine where your python is located

import sys
sys.executable

you will gain something like '/Users/some_user/opt/anaconda3/bin/python' Then go to this direction

cd /Users/some_user/opt/anaconda3/bin/python

and install missing package

./pip install term

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Michael Matsaev