At the command line:
$ pip install marshal
Or, if you have virtualenvwrapper installed:
$ mkvirtualenv marshal $ pip install marshal