The Wayback Machine - https://web.archive.org/web/20240118175203/https://www.geeksforgeeks.org/how-to-install-pyquery-package-on-ubuntu/
Open In App
Related Articles

How to Install PyQuery package on Ubuntu?

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

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

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 31 Jan, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials