'"ModuleNotFoundError: No module named 'rich'" even though I installed with pip

I'm trying to import the rich python module into my code, but I keep getting a 'ModuleNotFoundError' even thought I used pip install --user rich after getting the error, but I still get the same error, I was wondering if anyone has encountered a similar problem and knows how to fix it? Thanks.



Solution 1:[1]

Your install of pip may not be using the same Python version that you are trying to import Rich with. Try installing Rich with the following:

python -m pip install rich

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 Will McGugan