2

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'

honeysingh
  • 69
  • 1
  • 2
  • 8

3 Answers3

2

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 ?

Community
  • 1
  • 1
Serge Ballesta
  • 143,923
  • 11
  • 122
  • 252
0

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
Steve Barnes
  • 27,618
  • 6
  • 63
  • 73
0

try running

py -m install mechanicalsoup

it worked on my Windows 10 with Python 3.6 Good Luck

Tayyab Hayat
  • 815
  • 1
  • 9
  • 22