At the command line:
$ pip install ec
Or download the source from github, extract it and run:
$ python setup.py install