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?