title: How to print colorful text in Python terminal?
body: <p>I know this question have been raised at Stackoverflow <a href="https://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python">here</a></p>
  
  <p>So I've tried the following code from <code>joeld</code>'s answer.</p>
  
  <p>Here is the code in IDLE (I am using Python 2.7):</p>
  
  <pre><code>print '\033[95m'+'my text'+'\033[95m'
  </code></pre>
  
  <p>and I got the output without color changed:</p>
  
  <pre><code>[95mmy text[95m
  </code></pre>
  
  <p>===============================================================================</p>
  
  <p>Then I also tried the package <code>colorama</code>. The package was installed within <code>cmd</code>:</p>
  
  <pre><code>python setup.py install
  </code></pre>
  
  <p>and tried following code in Aptana Studio 3:</p>
  
  <pre><code>from colorama import *
  
  print (Fore.GREEN + 'Green text')
  print (Fore.Red + 'Red text')
  </code></pre>
  
  <p>I got following output:</p>
  
  <pre><code>[32mGreen text
  Traceback (most recent call last):
    File "C:\Users\My Documents\Aptana Studio 3 Workspace\Practice\test_colorama.py", line 12, in &lt;module&gt;
      print (Fore.Red + 'Red text')
  AttributeError: 'AnsiCodes' object has no attribute 'Red'
  </code></pre>
  
  <p>===============================================================================</p>
  
  <p>So now I am really confused. These solutions are upvoted hundreds of times which implies that it should be effective, but in my case it seems not.</p>
  
  <p>May I know how I can print colorful text in the terminal or console?</p>
  
  <p>Many thanks.</p>