How to Install PyQuery package on Ubuntu?
Pyquery is a Python library that has quite a similar API to jQuery. It uses lxml module for fast XML and HTML manipulation experience. The API is as large as possible comparable to jQuery. Pyquery is processed on the server-side, unlike jquery which is processed in the browser. We can crawl the web information through this library very easily.
Installing PyQuery package on Linux using PIP
To install the PyQuery package in Linux we have to follow the following steps:
Step 1: First of all, we will install Python3 on our Linux Machine. Use the following command in the terminal to install Python3.
sudo apt-get install python3
Step 2: Now, install the pip module which is required to install the packages in Python3. So we use the following command for installation:
sudo apt install python3-pip
Step 3: Now, install the pyquery package by using the pip module. Use the following command to install pyquery package.
sudo pip3 install pyquery
sudo apt-get install python3-pyquery
Verifying PyQuery package Installation on Linux using PIP
To verify if the PyQuery package has been successfully installed in your system run the below command in Terminal:
python3 -m pip show pyquery
You’ll get the below message if the installation is completed successfully: