'How to I import "colorama" libary into python 3.10?
I have been experiencing major problems when Importing and trying to use modules like colorama or colored
I have Python 3.10 installed (final version) and have already typed these commands into cmd (also while being in the python path)
pip install colorama
pip3 install colorama
python3 pip install colorama
(everything installed perfectly)
I dont know if thats normal but when looking into the libs folder there is no module. Also after uninstalling and installing the module again.
this is what it say in Visual Studio
reportMi: Import "colorama" could not be resolved from source
also
Severity Code Description Project File Line Suppression State
Warning (active) reportMissingModuleSource Import "colorama" could not be resolved from source "the direction"
Solution 1:[1]
You can check if Colorama is installed in the correct location by typing the command pip install colorama in the cmd:

After which you can import it like so:
from colorama import init, Fore, Back
#init colorama
init()
Hope you found this helpful.
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 | Romans |
