python regex install code example Example 1: install re package python pip install regex Example 2: how to rinstalll re $ sudo easy_install re2