How to install Pip on CentOS 7


How to install Pip on CentOS 7

We’ll show you How to install Pip on CentOS 7. Pip is a very powerful package management system used to install and manage software packages written in the Python programming language. Installing Pip on CentOS 7 is really an easy task, just follow the steps bellow carefully and you should have Pip installed on CentOS 7 in few minutes.

1. How to install Pip on CentOS 7

To install pip on your server you need to have SSH access. Connect to your Linux server via SSH and install pip using the following command:

yum -y install python-pip

2. Verify Pip installation on CentOS 7

At this point you should have pip installed and ready to use on your CentOS 7 VPS. To verify that the installation was successful you can use the following command:

pip -V

The output should be similar to this one:

# pip -V
pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)

If you get output similar to the one above you are ready to use pip on your CentOS server.

3. How to use pip on CentOS 7

To search PyPI for specific package you can use the following command:

pip search package_name

4. Install package using pip on CentOS 7

Once you are ready to install specific package you can use the following command:

pip install package_name

5. Uninstall package using pip on CentOS 7

Similarly, if you want to uninstall a specific package you can use the following command:

pip uninstall package_name

6. List all available options you can use

pip has many other usage options. To list all options you can use use pip --help

# pip --help

Usage:
  pip  [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.
  -v, --verbose               Give more output. Option is additive, and can be used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).
  --log                 Path to a verbose appending log.
  --proxy              Specify a proxy in the form [user:[email protected]]proxy.server:port.
  --retries          Maximum number of retries each connection should attempt (default 5 times).
  --timeout              Set the socket timeout (default 15 seconds).
  --exists-action     Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
  --trusted-host    Mark this host as trusted, even though it does not have valid or any HTTPS.
  --cert                Path to alternate CA bundle.
  --client-cert         Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
  --cache-dir           Store the cache data in.
  --no-cache-dir        Disable the cache.
  --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.

Installing pip on CentOS 7 is an easy task if you have a VPS Hosting with us. Feel free to ask our expert Linux Administrators to install pip on your CentOS 7 server for you, and it will be taken care of immediately. They are available 24×7, so you can get the help you need at any time.

PS. Feel free to share this blog post if you liked it by using the social network shortcuts – you can also leave a comment instead, found under the share buttons.

Tutorials
Install Hiawatha on a Linux VPS
Tutorials
Install Octopress on a CentOS 6 VPS
Tutorials
How to Install Collabtive 2.1 on an Ubuntu 14.04 VPS
  • ALEXANDER PAYNE

    Where are you getting that pip9.0.1 rpm for python2.7 and centos?


    • admin

      adminadmin

      Author Reply

      You can upgrade pip to the latest version available using the following command:
      pip install –upgrade pip


 
Free Migration to RoseHosting. Award Winning Linux VPS Hosting with Fully Managed Support. Coupon RHBLOG50 for 50% offOrder Now
+