• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Pip on Debian 10

Written by Admin, Updated On January 4, 2020
debian, pip, python
How to Install PIP on Debian 10

Pip is a package management system used for installation and management of software packages in Python. Using pip, you can install packages from Python Package Index (PyPI) and other repositories. In this tutorial, described how to install Pip on Debian 10 Buster.

Install PIP for Python 3#

Follow the below steps as root or user with sudo privileges to install Pip for Python 3 on Debian 10 system:

At first, you should update the package list using below command:

sudo apt update

Next, execute below command to install pip and dependencies:

sudo apt install python3-pip

Once the installation is finished you can verify installation by typing:

pip3 --version

Version number of Pip may be changed. It will show output as below:

pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

Installing pip for Python 2#

First of all you need to update the package manager index by issue below command:

sudo apt update

After that execute below command to install pip and dependencies:

sudo apt install python-pip

Again, confirm the version of pip by typing:

pip --version

Output should as:

pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)

Use of PIP for Python 3#

Here, we will see some useful basic pip commands. First of all to get the list of all the commands in PIP issue below command:

pip3 --help

If you want to get information for particular command then issue command as below:

pip install --help

Above command will give details about install command.

To search package using PIP just type as below:

pip3 search PACKAGE_NAME

You should replace PACKAGE_NAME with the name of package which you want to search.

Install Package Using Pip#

Below is the syntax to install package with PIP:

pip3 install PACKAGE_NAME

Same as search replace the PACKAGE_NAME with package name.

Install Packages Using Requirements File#

You can install packages using requirements file. requirement.txt is a text file that contains a list of pip packages with their versions which are required to run a specific Python project. Use below command to install a list of requirements specified in a file:

pip3 install -r requirements.txt

Upgrade a Package With Pip#

You can upgrade already installed packages to latest version using below command:

pip3 install --upgrade PACKAGE_NAME

Uninstalling Packages With Pip#

To uninstall package with pip issue command:

pip3 uninstall PACKAGE_NAME

Note : If you are using Python 2 then replace pip3 with pip when issuing commands.

Conclusion#

This guide explains how to install PIP on Debian 10 for Python 3 and Python 2. Also described how to manage Python packages using pip. You can get more details about pip from this guide.

If you have any question or suggestion leave a comment below.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install and Use Docker on Debian 10
Next Article   How to Install VirtualBox on Debian 10

Related Posts

  • How to Change Hostname Debian 11

    How to Change Hostname on Debian 11

    February 3, 2023
  • How to Install Python 3.11 on Debian 11

    How to Install Python on Debian 11

    January 25, 2023
  • How to Install Mongodb on Debian 11

    How to Install MongoDB on Debian 11 Linux

    January 11, 2023

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install SSH Keys on Ubuntu 22.04
    How to Set up SSH Keys on Ubuntu 22.04 January 7, 2023
  • How to Install Mongodb on Debian 11
    How to Install MongoDB on Debian 11 Linux January 11, 2023
  • How to Install Puppet Agent on Ubuntu 22.04
    How to Install Puppet Agent on Ubuntu 22.04 January 22, 2023
  • How to Install Python 3.11 on Debian 11
    How to Install Python on Debian 11 January 25, 2023
  • How to Change-Hostname Ubuntu 22.04
    How to Change Hostname on Ubuntu 22.04 January 19, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook