N
N
Nick2son2021-11-16 17:42:51
Python
Nick2son, 2021-11-16 17:42:51

No module named 'Colorama'. How to fix if it says that it is already installed?

I installed the colorama module and it displays that it is already installed
6193c31bcac35594792655.jpeg
. At the same time, it does not start this module and gives an error
from colorama import init
from colorama import Fore, Back, Style

# use Colorama to make Termcolor work on Windows too
init()

print(back.green)
what = input ('what are we doing? (+, -): ')
print(back.white)
a = float(input("Enter the first number: "))
b = float(input('Enter the second number: '))

print (back.yellow)
if what == '+':
c = a + b
print('Result: ' + str(c))
if what == '-':
c = a - b
print('Result: ' + str(c))
else:
print('Invalid operation selected!')

File "C:\Users\Nicholas\Desktop\python\1.py", line 4, in
from colorama import *
ModuleNotFoundError: No module named 'colorama'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Philip Schultz, 2021-11-16
@Filipp_SC

Go to the interpreter settings and check if there is a colorama module there, if not, then add it.
6193d1591a974546858775.jpeg
6193d1846562b146272443.jpeg
6193d1990e3eb596409664.jpeg

A
Andy_U, 2021-11-16
@Andy_U

Cyrillic in path.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question