The "Python crawler" installation pyquery encounters the pit Could not the Find function xmlcheckversion in the library LIBXML2. is LIBXML2 installed?

Source: Internet
Author: User

Windows 64-bit operating system, crawling Web pages with Python and parsing pages with Pyquery

Pyquery is the implementation of jquery in Python, and it is very convenient to manipulate the parsing of HTML documents in the syntax of jquery. Need to install before use, Easy_install pyquery can, or Ubuntu under
Detailed reference:
http://blog.csdn.net/zhaoyl03/article/details/8631645

But when you install Pyquey with the PIP command, you get an error.

Pip Install Pyquery

Prompt to install lxml First, then install lxml with the following command

Pip Install lxml

Error

 not  in library LIBXML2. is LIBXML2 installed?

To find the information, we found the following solutions: https://www.zhihu.com/question/30047496 Pro-Test effective.

1. Install wheel, command line run: Pip Install wheel2. Download the corresponding. whl file here, and take care not to change the filename! http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml3. Enter the folder where the. WHL is located, execute the command to complete the installation pip install Full file name with suffix

Download from the address above to the WHL file for my computer: LXML-3.6.4-CP27-CP27M-WIN_AMD64.WHL

Then in the installation of Pyquery, successful!

C:\python27\scripts>pip Install lxml-3.6.4-cp27-cp27m- WIN_AMD64.WHLprocessing C:\python27\scripts\lxml-3.6.4-cp27-cp27m-win_amd64.whlinstalling collected packages:lxmlsuccessfully installed lxml-3.6.4C:\Python27\Scripts> pip Install pyquerycollecting pyquery Using cached Pyquery-1.2.17-py2.py3-none-Any.whlrequirement already satisfied:lxml>=2.1inchC:\python27\lib\site-packages ( frompyquery) Requirement already satisfied:cssselect>0.7.9inchc:\python27\lib\site-Packages ( frompyquery) Installing collected packages:pyquerysuccessfully installed Pyquery-1.2.17

The

Python crawler installs pyquery encounters a pit Could not the Find function xmlcheckversion in the library LIBXML2. Is LIBXML2 installed?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.