My python version is: Python 2.7
I did an easy_install mechanize then I tried running a script and I’m getting this:
File "test.py", line 2, in <module>
import mechanize
ImportError: No module named mechanize
If you need any other information let me know.
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:
If you’re on Linux/Mac, you may need to type the following: