简体   繁体   中英

lxml module cannot be found

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?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM