Avez-vous testé la solution sur le lien ?
Try this in case pip or easy_install, for whatever reason, aren't working:
Download the source code from http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.tar.gz
Unzip the package, go to the command line, change into the folder that was extracted and type:
python setup.py install
Car ce que j'ai compris python 2.7 n'as pas mechanize d'installer . et je pense que c'est la version que vous avez .