0

I installed Colorama into Google Colab. When I tried to import it, it shows ImportError:

import colorama

ImportError                               Traceback (most recent call last)
<ipython-input-33-88ec09736251> in <module>()
----> 1 import colorama
2 frames
/usr/local/lib/python3.6/dist-packages/colorama/ansitowin32.py in <module>()
      4 import os
      5 
----> 6 from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style, BEL
      7 from .winterm import WinTerm, WinColor, WinStyle
      8 from .win32 import windll, winapi_test
ImportError: cannot import name 'BEL'
---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.

How can I get rid from this problem?

desertnaut
  • 46,107
  • 19
  • 109
  • 140

1 Answers1

0

Run these commands:

pip3 install colorama
sudo pip3 install colorama
manarinian
  • 199
  • 9
  • Please explain to the OP, *why*. As these are potentially two very different things. As shown by the traceback, `colorama` is already installed at a system level. – S3DEV Feb 14 '21 at 13:39
  • Try the commands to install `colorama` if they don't work you can ask me. – manarinian Feb 14 '21 at 14:27