import colorama "could not be resolved from source" error

1.6k views Asked by At

I'm new to python programming and can't find any solutions anywhere. I installed pip and used 'pip install colorama' in cmd, and it worked. No errors. I go into visual studio code, and gives me this error. I'm unsure what to do.

the code vvv

import colorama

The code

The error

I uninstalled it, re-installed it, restarted vs code, I even installed it through the vs code terminal, and that didn't work either. If anybody can give me an answer to my problem it would be greatly appreciated.

2

There are 2 answers

0
MingJie-MSFT On
  • Use shortcuts "Ctrl+Shift+P" and type "Python: Select Interpreter".
  • Choose the correct python interpreter.
  • Open your terminal and use command 'pip install colorama' to install this package.
0
Nikcet On

Use the python interpreter older than 3.10.2. Colorama doesn't work with newest python.