python-3.xcolorama

Can't import the colorama module


I installed colorama, but I keep running into problems. It seems I can't import the colorama module. Sorry I'm an absolute beginner.

Visual Studio Code picture:

screenshot


Solution

  • Have you installed it correctly? Install colorama by typing pip install colorama in command prompt

    Then try reloading / restarting your VS Code.

    Check if the selected python interpreter in VSCode is the same as the one you installed coloroma. You can check by typing where python in command prompt and it will tell you the location.

    Get-Command python if you are in Windows Powershell, or type which python in Mac