skip to Main Content

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

Answers


    • 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.
    Login or Signup to reply.
  1. Use the python interpreter older than 3.10.2.
    Colorama doesn’t work with newest python.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search