Reputation: 69
How to install mechanize in python 3.4 on windows 8.1
I tried pip install mechanize
It had a few syntax errors in installation but finally it said Completed Successfully
Still import mechanize
doesn't work
It says No module named 'mechanize'
Upvotes: 2
Views: 4064
Reputation: 933
try running
py -m install mechanicalsoup
it worked on my Windows 10 with Python 3.6 Good Luck
Upvotes: 0
Reputation: 148890
From mechanize FAQ :
Which version of Python do I need? Python 2.4, 2.5, 2.6, or 2.7. Python 3 is not yet supported.
But you could have a look to this other recent post from SO I get an error in python3 when importing mechanize if you want to test the version in developpement for python3.
By the way, did you try googling "mechanize python3" before asking on SO ?
Upvotes: 2
Reputation: 28370
If you have both python 2.X.Y and 3.z on your machine you will also have both pip and pip3 you may have installed machanize for python 2 rather than python 3.
Try:
pip3 install mechanize
Upvotes: 0