Skip to content
Related Articles

Related Articles

How to Install PyQuery package on Ubuntu?

View Discussion
Improve Article
Save Article
  • Last Updated : 31 Jan, 2022

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.

Requirements:

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

Installing-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

 Installing-the-pip-module

Step 3: Now, install the pyquery package by using the pip module. Use the following command to install pyquery package.

sudo pip3 install pyquery

or 

sudo apt-get install python3-pyquery

 Installing-the-pyquery-package

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:

Verifying-PyQuery-package-installation

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!