'import Colorama, mac terminal and visual studio code

I have a problem with import Colorama in Visual studio code- py3 and in the Mac terminal.

I have already install colorama through the terminal but after having run the program, the text is still without color. This is what I wrote:

from colorama import Fore, Style, init 
init(convert=True)
print(Fore.RED + "Hello World")

In Visual studio code, it seems like it does not recognize Colorama, and when I click on run in VSC appears this : ModuleNotFoundError: No module named 'colorama'

And in the terminal, of course, it prints Hello World but with standard color instead of RED.

I would appreciate if someone knows how to fix it Thank you in advance! It's very important to say that it's on a iOS operative system.



Solution 1:[1]

I have an answer! :) Simply type "pip install ", and then the package that you want to download into the power shell if you are using Mac. For example:

pip install colorama

However, you may need to install pip first, if it is not installed, or any errors come up. Just type:

sudo easy_install pip

into your shell.

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 user18421611