Pages

Thursday, April 12, 2012

LXML: Installation simplified


Its easy.., but sometimes it is troublesome with the installation of lxml module of Django. Here is the simplified steps to do it:


Step 1>Download easy installer from this link-(Ok!, if you have already), the "setuptools-0.6c11.win32-py2.6.exe" file.
or search-> easy installer for python.


Step 2>Download lxml.egg from this link


Step 3> To install,just type the following:
easy_install lxml.egg(this should be at the command window at the directory where lxml.egg lies->you can open command window by holding the shift key and then clicking on the right mouse button and then choosing from the context menu).


The easiest method:
download lxml.exe from here
and simply install it your way..!!

Tuesday, April 3, 2012

Pip and its installation on windows



The python software pip is a replacement for *easy_install*  .One may say it as a wrapper for easy_install, and indeed it is.
It is used mainly to provide installation for python packages.


First method:


Step 1>Download the last easy installer for Windows that fits your installed python version: (download the .exe at the bottom of http://pypi.python.org/pypi/setuptools ). Install it.
Step 2>Add c:\Python2x\Scripts to the Windows path (replace Python2x with the correct directory)
Step 3>Open a new (!) DOS prompt. From there run easy_install pip
For the 64 bit operating system refer to this link


Second method:
Step 1>Download the last pip version from here:       
Step 2>Uncompress it
Step 3>Download the last easy installer for Windows: (download the .exe at the part of   http://pypi.python.org/pypi/setuptools ). You can install it directly.
Step 4>Go to the uncompressed pip directory from the command prompt and type:
                     python setup.py install
Step 5>Add your python c:\Python2x\Scripts to the path
You are done.


Now you can use pip install package to easily install packages like you do in Linux :))
 

Blogroll

About