installing python-mechanize on windows

9,422 views
Skip to first unread message

corey goldberg

unread,
Mar 5, 2010, 11:15:51 AM3/5/10
to multi-mechanize
I've received some emails from people having trouble getting python-
mechanize installed on Windows. This is needed by multi-mechanize to
run mechanize based test scripts.

I just updated the FAQ with some instructions:
http://code.google.com/p/multi-mechanize/wiki/FAQ

basically, you want to use python's "easy_install". easy_install is
available once you install Setuptools or Distribute (both are
compatible python distribution/packaging apps).

to install Distribute:
- go to http://pypi.python.org/pypi/distribute#distribute-setup-py
- download the distribute-setup-py script
- run the distribute-setup-py script. this will install Distribute

once this is done, you can easy_install mechanize
- go to a command prompt at C:\Python26\Scripts
- run: 'easy_install mechanize'


hth,
-Corey

Rupesh

unread,
Mar 10, 2010, 5:02:47 AM3/10/10
to multi-mechanize
I have successfully installed Mechanize on windows using the
traditional method.
Follow the steps if you are unable to install mechanize using easy
install method stated by corey

For Mechanize on windows you need
1. Mechanize Source Tarball
More Info at http://wwwsearch.sourceforge.net/mechanize/
Download Link: http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zip

After downloading the latest package, unzip it to a folder. On command
prompt browse to the folder and run command "python setup.py install"
example c:\mechanize\python setup.py install

At the end of the installation if you get the error
"No local packages or download links found for ClientForm" then
ClientForm package was not installed. Follow step 2

2. ClientForm (Dependency for mechanize)
More Info at http://wwwsearch.sourceforge.net/ClientForm/
Download Link: http://wwwsearch.sourceforge.net/ClientForm/src/ClientForm-0.2.10.zip

After downloading the latest package, unzip it to a folder. On command
prompt browse to the folder and run command "python setup.py install"
example c:\clientform\python setup.py install

Follow the traditional method for packages that cannot be installed
using easy_install.

-Rupesh

On Mar 6, 12:15 am, corey goldberg <cgoldb...@gmail.com> wrote:
> I've received some emails from people having trouble getting python-
> mechanize installed on Windows.  This is needed by multi-mechanize to
> run mechanize based test scripts.
>
> I just updated the FAQ with some instructions:http://code.google.com/p/multi-mechanize/wiki/FAQ
>
> basically, you want to use python's "easy_install".  easy_install is
> available once you install Setuptools or Distribute (both are
> compatible python distribution/packaging apps).
>
> to install Distribute:

> - go tohttp://pypi.python.org/pypi/distribute#distribute-setup-py

corey goldberg

unread,
Mar 10, 2010, 9:21:42 AM3/10/10
to multi-mechanize
> I have successfully installed Mechanize on windows
> using the traditional method.
> Follow the steps if you are unable to install mechanize
> using easy install method stated by corey


thanks rupesh. this is useful.

-Corey

pumaboyd

unread,
Apr 4, 2010, 2:39:06 AM4/4/10
to multi-mechanize
but i can install success。

i using "easy_install mechanize",they are some files will copy into
"\Lib\site-packages". like 'ClientForm-0.2.10-
py2.6.egg','mechanize-0.1.11-py2.6.egg'. only this ....

Corey Goldberg

unread,
Apr 4, 2010, 4:22:13 PM4/4/10
to multi-m...@googlegroups.com
> but i can install success。
>
> i using "easy_install mechanize",they are some files will copy into
> "\Lib\site-packages". like 'ClientForm-0.2.10-
> py2.6.egg','mechanize-0.1.11-py2.6.egg'. only this ....


was there a question you had?

-Corey

Reply all
Reply to author
Forward
0 new messages