Install python + mechanize + lxml on windows

What is the easiest way to install python 2 plus lxml plus mechanize on windows? I am looking for a solution that is easy to track and also makes it easier to install other libraries (eggs?) In the future.

Edit I want to be able to install libraries that require a compiler. Ruby for windows has a development kit that makes it easy to install gems that require a compiler. I am looking for a similar installation for Python.

+3
source share
6 answers

For the simplest installation of these components, I recommend using 32-bit installers for the entire process, so all links here point to 32-bit versions. First download and install Python 2.7.3 .

Then you will want to install setuptools Setuptools will make it so that you can enter "easy_install" at the command line and add additional packages. This will be useful for mechanization.

Now you can download and install lxml for Python 2.7 .

MSI, , . "", cmd easy_install mechanize. easy_install , PATH (. )

! , easy_install nameofbibraryhere .

, TL;DR:

Python 2.7.3: http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi

setuptools: http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe#md5=57e1e64f6b7c7f1d2eddfc9746bbaf20

lxml Python 2.7: http://pypi.python.org/packages/2.7/l/lxml/lxml-2.2.8.win32-py2.7.exe#md5=deb95d53dbd3734ecfb4f69850758427

easy_install mechanize

, Windows .

+3

, PIP, pip install lxml lxml. mechanize : pip install mechanize, , Python 3 , , / mechanize, Python 2. , , lxml.html .

+2
+1

ActiveState Python ( 32- ), pypm lxml :

pypm install lxml
pypm install mechanize
+1

Python - , , , , - Visual Studio, easy_install, pip. Visual Studio 2008 express ++ edition (, , ).

, easy_install --always-unzip [package] ( ). Easy_install .

, lxml ( ) libxml2 libxslt, easy_install. , - : https://mail.gnome.org/archives/xml/2010-February/msg00026.html.

, - , - , , easy_install [foo], , , .

!

0

. , - , , Windows python + mechanize + lxml + .

0

All Articles