lxml module cannot be found

Go To StackoverFlow.com

0

Download lxml-2.3.3.tar.gz

Extract it then run sudo python setup.py build under the folder

python selftest.py =>184 tests ok.

Extract lxml folder lxml-2.3.3\src\lxml to my python path

Running the application will cause error - Usage of the XML aspects requires lxml

Is that correct way to build and install?

2012-04-04 03:38
by user1076881
Use easyinstall(or pip): easy_install lxml. It looks like you are on windows so easyinstall should be in the scripts subdirectory of your python folde - Nolen Royalty 2012-04-04 03:43


2

After building, you have to install using

python setup.py install

Simply copying the folder to python path will not work.

Or you can just use pip and run

pip install lxml
2012-04-04 03:42
by Kien Truong


1

For Windows, you can download the pre-built module from this windows python lib site. Note that this is unofficial, but highly respected.

2012-04-04 04:14
by Burhan Khalid
Ads