21
votes

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.

2
mechanize does not seem to support Python 3: 1, 2 - Lev Levitsky

2 Answers

27
votes

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?.

2
votes

(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