I'm trying to retrieve the mechanize module for python 3.4. Can anybody guide me in the right direction and perhaps walk me through the steps that I would need to take in order to make the correct installation? I'm currently using Windows 10.
Asked
Active
Viewed 5.2k times
22
-
2`mechanize` does not seem to support Python 3: [1](http://wwwsearch.sourceforge.net/mechanize/faq.html), [2](https://pypi.python.org/pypi/mechanize/) – Lev Levitsky Aug 02 '15 at 17:50
2 Answers
28
unfortunately mechanize only works with Python 2.4, Python 2.5, Python 2.6, and Python 2.7.
The good news is there are other projects you can take a look at: RoboBrowser, MechanicalSoup
There are more alternatives in this thread as well: Are there any alternatives to Mechanize in Python?.

Community
- 1
- 1

Jean Guzman
- 2,162
- 1
- 17
- 27
-
Ok thanks. Hoes does RoboBrowser compare with Mechanize? Will I be able to perform the same tasks with it? – Carnageta Aug 02 '15 at 19:15
-
Also, where would you suggest I go to install the RoboBrowser module? – Carnageta Aug 02 '15 at 19:16
-
1@Carnageta in order to install RoboBrowser you can go here: [RoboBrowser](http://robobrowser.readthedocs.org/en/latest/installation.html). In my Opinion RoboBrowser which wraps up BeautifulSoup and requests. Is your best alternative for Mechanize in python3 – Jean Guzman Aug 02 '15 at 19:25
-
Thanks. The link says: "at the command line: $ easy_install robobrowser". What does this mean? Sorry, I'm not really familiar with these sort of things. – Carnageta Aug 02 '15 at 20:35
-
1That's a command that should be run at command line in order to install the package but you could do it with pip as well which will be better if you are using a virtual environment. – Jean Guzman Aug 06 '15 at 07:04
-
2
(edit) Mechanize 0.4.0 was release a few days ago (16th Jan 2019) and includes the python3 fixes from the mechanize3 fork so you could consider just updating to the latest mechanize release.
pip install -U mechanize

tgates42
- 21
- 2