{"id":9392,"date":"2020-05-07T13:05:31","date_gmt":"2020-05-07T13:05:31","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=9392"},"modified":"2020-05-07T13:05:31","modified_gmt":"2020-05-07T13:05:31","slug":"installing-pip-on-ubuntu-16-04-lts","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/","title":{"rendered":"Installing Pip on Ubuntu 16.04 LTS"},"content":{"rendered":"<p>Pip is a popular tool used to install and manage Python packages. Most of its users are happy with its capabilities of handling binary packages over the easy_installed packages manager, as Pip allows 3rd party package installations. Mostly, Python comes with Pip as a default, but in this tutorial, we will show how to install and check the Pip version as well as some commands for using Pip on Ubuntu 16.04.<\/p>\n<h2>Frontline :<\/h2>\n<p>All these instructions are specific for an Ubuntu 16.04 LTS server, where we are logged in as root.<\/p>\n<h2># Steps to install and verify Pip<\/h2>\n<p>1) First of all, we have to ensure that all packages are up-to-date. Run the following command and you will get an output of any package getting their update.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">apt-get update<\/pre>\n<p>2) Now, install Pip with cURL and Python. Downloading with cURL command shows the latest version of Pip.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">curl \u201chttps:\/\/bootstrap.pypa.io\/get-pip.py\u201d\u00a0 -o \u201cget-pip.py\u201d<\/pre>\n<pre class=\"trim-whitespace:false lang:default decode:true \">python get-pip.py<\/pre>\n<p>3) The next step is to verify the installation of Pip.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">pip\u00a0\u00a0 --version<\/pre>\n<p>It gives the output as :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">pip\u00a0 --version\r\n\r\npip 18.0 from \/usr\/local\/lib\/python2.7\/dist-packages\/pip (python\u00a0 2.7)<\/pre>\n<p>This way you can install and verify Pip.<\/p>\n<p>Now, let\u2019s learn some basic Pip commands.<\/p>\n<h2>To install Libraries<\/h2>\n<p>Using the following commands, Pip can install 3rd party packages like Django, Tensorflow, Numpy, Pandas, etc.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">pip install &lt;library_name&gt;<\/pre>\n<h2>To search for Libraries<\/h2>\n<p>Using command lines you can also search for other libraries in Python repository. For example, we are taking Django packages, so the search command will show a similar list as shown below :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">pip search django<\/pre>\n<pre class=\"trim-whitespace:false lang:default decode:true \">django-bagou (0.1.0) - Django Websocket for Django\r\ndjango-maro (0.0.2) - `django-maro` is utility for django.\r\ndjango-hooked (0.1.7) - WebHooks for Django and Django Rest Framework.\r\ndjango-ide (0.0.5) - A Django app to develop Django apps\r\ndjango-mailwhimp (0.1) - django-mailwhimp integrates mailchimp into Django\r\ndjango-six (1.0.4) - Django-six \u2014\u2014 Django Compatibility Library\r\ndjango-umanage (1.1.1) - Django user management app for django\r\ndjango-nadmin (0.1.0) - django nadmin support django version 1.8 based on django-xadmin\r\ndiy-django (1.3.1) - diy-django<\/pre>\n<h2>To uninstall a library<\/h2>\n<p>In case you don\u2019t need a library then you can uninstall easily using the following command :<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">pip uninstall<\/pre>\n<h2>To install Python resources<\/h2>\n<p>Many times, Python packages have requirements.txt file, incase you see this file, then you can run the following command to install all libraries in that package.<\/p>\n<pre class=\"trim-whitespace:false lang:default decode:true \">pip install -r requirements.txt<\/pre>\n<p><strong>Also Read :<\/strong><\/p>\n<p><strong>1)\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-install-node-js-on-ubuntu-16-04\/\" target=\"_blank\" rel=\"noopener\">How to Install Node.js on Ubuntu 16.04<\/a><\/strong><\/p>\n<p><strong>2)\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/install-and-configure-mod_security-on-ubuntu-16-04-server\/\" target=\"_blank\" rel=\"noopener\">A Guide to Install and Configure Mod_Security on Ubuntu 16.04 Server<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pip is a popular tool used to install and manage Python packages. Most of its users are happy with its capabilities of handling binary packages over the easy_installed packages manager, as Pip allows 3rd party package installations. Mostly, Python comes with Pip as a default, but in this tutorial, we will show how to install [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[647,1429,1025,952,1430,637,678,1431],"class_list":["post-9392","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-web-hosting-faq","tag-linux","tag-package-management","tag-pip","tag-python","tag-python-pip","tag-ubuntu","tag-ubuntu-16-04","tag-ubuntu-16-04-lts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing Pip on Ubuntu 16.04 LTS - Web Hosting FAQs by MilesWeb<\/title>\n<meta name=\"description\" content=\"An easy guide on how to install Pip on Ubuntu 16.04 LTS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Pip on Ubuntu 16.04 LTS - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"An easy guide on how to install Pip on Ubuntu 16.04 LTS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-07T13:05:31+00:00\" \/>\n<meta name=\"author\" content=\"Sonam Wagh\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sonam Wagh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/\"},\"author\":{\"name\":\"Sonam Wagh\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"headline\":\"Installing Pip on Ubuntu 16.04 LTS\",\"datePublished\":\"2020-05-07T13:05:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/\"},\"wordCount\":303,\"commentCount\":0,\"keywords\":[\"Linux\",\"Package Management\",\"PIP\",\"Python\",\"Python-PIP\",\"Ubuntu\",\"Ubuntu 16.04\",\"Ubuntu 16.04 LTS\"],\"articleSection\":[\"Web Hosting FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/\",\"name\":\"Installing Pip on Ubuntu 16.04 LTS - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2020-05-07T13:05:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\"},\"description\":\"An easy guide on how to install Pip on Ubuntu 16.04 LTS.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing Pip on Ubuntu 16.04 LTS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4\",\"name\":\"Sonam Wagh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg\",\"caption\":\"Sonam Wagh\"},\"description\":\"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing Pip on Ubuntu 16.04 LTS - Web Hosting FAQs by MilesWeb","description":"An easy guide on how to install Pip on Ubuntu 16.04 LTS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/","og_locale":"en_US","og_type":"article","og_title":"Installing Pip on Ubuntu 16.04 LTS - Web Hosting FAQs by MilesWeb","og_description":"An easy guide on how to install Pip on Ubuntu 16.04 LTS.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-05-07T13:05:31+00:00","author":"Sonam Wagh","twitter_misc":{"Written by":"Sonam Wagh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/"},"author":{"name":"Sonam Wagh","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"headline":"Installing Pip on Ubuntu 16.04 LTS","datePublished":"2020-05-07T13:05:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/"},"wordCount":303,"commentCount":0,"keywords":["Linux","Package Management","PIP","Python","Python-PIP","Ubuntu","Ubuntu 16.04","Ubuntu 16.04 LTS"],"articleSection":["Web Hosting FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/","name":"Installing Pip on Ubuntu 16.04 LTS - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2020-05-07T13:05:31+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4"},"description":"An easy guide on how to install Pip on Ubuntu 16.04 LTS.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/installing-pip-on-ubuntu-16-04-lts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Installing Pip on Ubuntu 16.04 LTS"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/dc645d02823c86e07e53798ebe02c6f4","name":"Sonam Wagh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2019\/12\/Sonam-Wagh-150x150.jpg","caption":"Sonam Wagh"},"description":"With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/sonam\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=9392"}],"version-history":[{"count":1,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9392\/revisions"}],"predecessor-version":[{"id":9393,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9392\/revisions\/9393"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=9392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=9392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=9392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}