Sunteți pe pagina 1din 6

How to install Pip on Ubuntu 16.

04
JULY 1, 2016 (HTTPS://WWW.ROSEHOSTING.COM/BLOG/HOW-TO-INSTALL-PIP-ON-UBUNTU-16-04/)
6 (HTTPS://WWW.ROSEHOSTING.COM/BLOG/HOW-TO-INSTALL-PIP-ON-UBUNTU-16-04/#COMMENTS) TUTORIALS

Facebook 0 Twitter 4 Google+ 0 (https://plus.google.com/share?url=https://www.rosehosting.com/blog/how-to-install-pip-on-

ubuntu-16-04/) Linkedin 2 (http://www.linkedin.com/shareArticle?mini=true&url=https://www.rosehosting.com/blog/how-to-install-pip-on-


ubuntu-16-04/&title=How%20to%20install%20Pip%20on%20Ubuntu%2016.04&summary=In
on a Linux VPS running Ubuntu 16.04
written
as in
anPython
operating
which
system.
can be
Pipfound
is a package
in the Python
management
Package
this
system
Index
tutorial
(PyPI).First
usedwetoare
install
going
...) and
tomanage
show you
software
how to packages
install Pip

In this tutorial we are going to show you how to install Pip on a Linux VPS (https://www.rosehosting.com/) running

Ubuntu 16.04 as an operating system. Pip is a package management system used to install and manage software packages written in Python which can

be found in the Python Package Index (PyPI).

First of all, connect to your server via SSH (https://www.rosehosting.com/blog/connect-to-your-linux-vps-via-ssh/)and make sure that all your system

software is up to date. Run the following command to update the package list and upgrade all your system software to the latest version available:

sudo apt-get update && sudo apt-get -y upgrade

Once the upgrade is completed, you can move on and install Pip on your Ubuntu VPS (https://www.rosehosting.com/ubuntu-vps.html). The installation

of Pip is very simple. The only thing you need to do is to run the following command:

sudo apt-get install python-pip

The apt package manager will install Pip and all the dependencies required for the software to work optimally. Once the installation is completed you can

verify that it was successful by using the following command:

pip -V

RoseHosting o ers quality Fully Managed VPS Hosting (https://www.rosehosting.com/linux-vps-hosting.html) with FREE 24/7 Support starting at
$19.95/mo

You should see something similar to the following:

# pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
Questions?
Chat with us live
That means Pip has been successfully installed on your server and it is ready to use.

To search for a package, you can use the following command:

pip search package_name

To install the package, you can use the following command:

pip install package_name

In a case where youd like to uninstall a package, you can use the following command:

pip uninstall package_name

For more Pip options and usage examples you can use the --help ag:

# 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.
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.
--log Path to a verbose appending log.
--proxy Specify a proxy in the form [user:passwd@]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.
--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.
...

Of course you dont have to do any of this if you use one of our Linux VPS hosting (https://www.rosehosting.com/linux-vps-hosting.html)services, in

which case you can simply ask our expert Linux admins to install Pip for you. They are available 247 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

PIP (HTTPS://WWW.ROSEHOSTING.COM/BLOG/TAG/PIP/) PYTHON (HTTPS://WWW.ROSEHOSTING.COM/BLOG/TAG/PYTHON/) UBUNTU (HTTPS://WWW.ROSEHOSTING.COM/BLOG/TAG/UBUNTU/)

SHARE:

RELATED ARTICLES

TUTORIALS

Install VSFTPD on an Ubuntu


16.04 VPS
(https://www.rosehosting.com/blog/install-vsftpd-on-ubuntu/)

TUTORIALS

How to enable automatic


updates on a Linux VPS
(https://www.rosehosting.com/blog/how-to-enable-automatic-updates-on-a-linux-vps/)

TUTORIALS

How to Install, Con gure and


Use Redis on Ubuntu 16.04
(https://www.rosehosting.com/blog/how-to-install-con gure-and-use-redis-on-ubuntu-16-04/)

COMMENTS

Keith ()
JULY 7, 2016
REPLY (HTTPS://WWW.ROSEHOSTING.COM/BLOG/HOW-TO-INSTALL-PIP-ON-UBUNTU-16-04/?REPLYTOCOM=44825#RESPOND)
This no longer seems to be the case:
pip -V
pip 8.1.2 from /usr/local/lib/python3.5/dist-packages (python 3.5)

Forcing 3.5 which makes it painful for projects with 2.7 only.

Phillip Chiarato ()
AUGUST 12, 2016
REPLY (HTTPS://WWW.ROSEHOSTING.COM/BLOG/HOW-TO-INSTALL-PIP-ON-UBUNTU-16-04/?REPLYTOCOM=44861#RESPOND)

If you want to install pip for python 3.5 use: sudo get-apt install python3 and then sudo apt-get install python3-pip to nd out if it worked just type
python3 -m pip version

Tim Basaldua ()
SEPTEMBER 21, 2016
REPLY (HTTPS://WWW.ROSEHOSTING.COM/BLOG/HOW-TO-INSTALL-PIP-ON-UBUNTU-16-04/?REPLYTOCOM=44973#RESPOND)

On Ubuntu 16.04:
python3 -m pip -V
. . . . worked for me.

ry__ ()
DECEMBER 29, 2016
REPLY (HTTPS://WWW.ROSEHOSTING.COM/BLOG/HOW-TO-INSTALL-PIP-ON-UBUNTU-16-04/?REPLYTOCOM=45213#RESPOND)

then get most modern version:


# python3 -m pip install upgrade pip

Add your comment here...

Name (Required)

Email (Required)

Website URL

I'm not a robot


reCAPTCHA
Privacy - Terms
POST COMMENT

PREVIOUS POST
(https://www.rosehosting.com/blog/install-avactis-shopping-cart-on-a-centos-7-vps/)
Install Avactis Shopping Cart on a CentOS 7 VPS

(https://www.rosehosting.com/blog/install-cockpit-on-ubuntu-16-04/) NEXT POST


Install Cockpit CMS on Ubuntu 16.04

Get started with RoseHosting Today.


Create Account (https://secure.rosehosting.com/clientarea/index.php?/signup/)

Company
About us (https://www.rosehosting.com/about-us.html)
Our Policies (https://www.rosehosting.com/policies.html)
Contact Us (https://www.rosehosting.com/contact-us.html)
Blog (https://www.rosehosting.com/blog)
Why Rosehosting (https://www.rosehosting.com/why-rosehosting.html)
Compare Us (https://www.rosehosting.com/compare-to-competition.html)
Customer Reviews (/reviews.html)
Awards & Recognition (https://www.rosehosting.com/awards.html)

Support
Helpdesk System (https://secure.rosehosting.com/clientarea/index.php?/tickets/)
Knowledge Base (https://secure.rosehosting.com/clientarea/index.php?/knowledgebase)
Systems Status (https://status.rosehosting.com)

Hosting Solutions
Linux Shared Hosting (https://www.rosehosting.com/linux-shared-hosting.html)
Linux VPS Hosting (https://www.rosehosting.com/linux-vps-hosting.html)
VPS Hosting Stacks (https://www.rosehosting.com/vps-hosting-stacks.html)
Custom VPS (https://secure.rosehosting.com/clientarea/?cmd=cart&action=add&id=54)
OneClick Install Cloud (https://www.rosehosting.com/cloud-server-oci-hosting.html)
Dedicated Servers (https://www.rosehosting.com/dedicated-servers.html)
A liate Program (https://www.rosehosting.com/vps-a liate-program.html)

Linux VPS Hosting


CentOS VPS (https://www.rosehosting.com/centos-vps.html)
Ubuntu VPS (https://www.rosehosting.com/ubuntu-vps.html)
Debian VPS (https://www.rosehosting.com/debian-vps.html)
OpenSUSE VPS (https://www.rosehosting.com/opensuse-vps.html)
Arch-Linux VPS (https://www.rosehosting.com/arch-linux-vps.html)
Scienti c Linux VPS (https://www.rosehosting.com/scienti c-linux-vps.html)

Other Services
Domain Registration (https://secure.rosehosting.com/clientarea/index.php?/checkdomain/domain-registration/)
Domain Transfer (https://secure.rosehosting.com/clientarea/index.php?/checkdomain/domain-registration/#transfer)
SSL Certi cates (https://www.rosehosting.com/ssl-certi cates.html)
Server Monitoring (https://www.rosehosting.com/server-monitoring.html)
Contact Us
(888) ROSE-HOST (tel:+18887673467)
(888) 767-3467 (tel:+18887673467)
(314) 275-0414 (tel:+16465197201)
Email us (mailto:support@rosehosting.com)

Connect
Twitter (https://twitter.com/rosehosting)
Facebook (https://www.facebook.com/RoseHosting)
Google+ (https://plus.google.com/+Rosehosting)
LinkedIn (https://www.linkedin.com/in/rosehosting)
RSS Feed (https://www.rosehosting.com/blog/feed/)

Terms of Service (https://www.rosehosting.com/tos.html) and other policies (https://www.rosehosting.com/policies.html)


2001-2017 Rose Web Services LLC (https://www.rosewebservices.com/).

S-ar putea să vă placă și