{"id":29227,"date":"2021-02-15T08:59:58","date_gmt":"2021-02-15T16:59:58","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=29227"},"modified":"2022-07-20T08:35:00","modified_gmt":"2022-07-20T15:35:00","slug":"python-pip","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-pip\/","title":{"rendered":"Python pip: A Complete Guide"},"content":{"rendered":"\n<p>You have probably seen the pip command somewhere in the Python documentation. If you have ever stumbled across any third-party library in Python, you know that the first line mentions the pip command. This one command plays a key role in your project: pip lets you download and manage packages.<br><\/p>\n\n\n\n<p>If you have ever used package managers in other languages, like npm in JavaScript or gem in Ruby, you are already familiar with the concept of package management. The sole purpose of pip is to help you manage packages in your Python project.<br><\/p>\n\n\n\n<p>This tutorial will discuss how to use the Python pip tool to add and remove packages from your Python project. We\u2019ll walk you through some examples as well to help you get started with this tool.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is pip?<\/h2>\n\n\n\n<p>pip is a package management system written in Python. It is a tool that helps to install and manage third-party libraries and packages. The pip tool is extremely crucial to Python development, and it is included with the Python environment installation since Python 2.7.9.&nbsp;<br><\/p>\n\n\n\n<p>Let\u2019s say you created a fresh project using Python for a machine learning task. While you may have the dataset and the applicable algorithm for the task at hand, it is not advisable to write the code for the algorithm from scratch. Popular open-source libraries like Keras and Tensorflow already contain pre-written, optimized code for your algorithms. Libraries like Pandas and NumPy contain a routine of methods to help you pre-process or clean your dataset easily. You want to be able to use these directly in your project.<br><\/p>\n\n\n\n<p>That\u2019s where the Python pip tool comes in. The pip tool allows you to install these packages directly from the Python Package Index in a hassle-free process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Packages: A Refresher<\/h2>\n\n\n\n<p>In a computer, files are not usually all stored in the same location. Every user follows a different structure for organizing files and folders for easy access. Similar files are usually grouped together, under a common directory, as they have a similar purpose. Instead of directories, however, libraries and methods are organized using what we call modules and packages. This is another method of file organization.<br><\/p>\n\n\n\n<p>A Python module is a collection of methods and properties which share a common purpose. A package further groups similar modules together to present an independent ecosystem of code that can help solve a bigger problem. More often than not, projects require traditional algorithms to be followed to complete routine tasks like data sorting, searching, or data manipulation. Writing code for these use-cases inside your project can increase clutter, as the focus can shift from your business logic to your sorting and searching methods.<br><\/p>\n\n\n\n<p>To solve this issue, code for such routine tasks is usually written in separate modules, which helps to reduce the clutter in the main project, as well as allows for better testing and individual development on this code. These packages can then be exported and made available to a big number of developers with package distribution systems like the Python Package Index. Then, you can install a package using pip.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python pip Tool<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Packages<\/h3>\n\n\n\n<p>The pip tool can be used to install packages available over the Python Package Index via the command line. pip comes preinstalled with most modern versions of Python. You need to put the name of the package that you wish to install in your project in the following syntax:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip install package_name<\/pre><\/div>\n\n\n\n<p>As you can see, the above command is composed of three parts:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>pip<\/strong>: Instructs the terminal to invoke the pip tool and pass the trailing tokens as arguments to it.<\/li><li><strong>install<\/strong>: Instructs the pip tool that a package needs to be installed.<\/li><li><strong>package_name<\/strong>: Denotes the name of the package that has to be installed.<\/li><\/ul>\n\n\n\n<p>Here\u2019s how you can use this syntax to install the popular statistical library Numpy:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip install numpy<\/pre><\/div>\n\n\n\n<p>If you have worked with npm, used for JavaScript development, the syntax is nearly the same: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>npm install package_name<\/pre><\/div>\n\n\n\n<p>The tool looks for the package by name in the PyPI (Python Package Index) and installs the package if it is available.&nbsp;<br><\/p>\n\n\n\n<p>You can also install multiple packages at once, using the following syntax:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip install package1 package2 package3 ...<\/pre><\/div>\n\n\n\n<p>This is how you would use this syntax in a real-life scenario:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip install numpy pandas<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Using the requirements.txt File<\/h3>\n\n\n\n<p>The above method can get quite cumbersome if you have a long list of packages to install. pip offers a way of installing packages using a requirements.txt file. This is how a usual requirements.txt file looks:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>###### Packages that are not version-specific\nnumpy\npandas\nbeautiful-soup\n\n###### Packages that require certain versions to be installed\ndocopt == 0.6.1.            # When looking for the exact version\nkeyring &gt;= 4.1.1.           # When looking for any version above the               \n                              specified one\nMopidy-Dirble ~= 1.1.       # When looking for a compatible release. \n                              Equivalent to &gt;= 1.1or == 1.*<\/pre><\/div>\n\n\n\n<p>And this is how the syntax of a pip call with a requirements.txt file looks like:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip install -r requirements.txt<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Uninstalling Packages<\/h3>\n\n\n\n<p>Many times, it is necessary to remove packages from your projects for maintenance or upgrading purposes. The pip tool can be used to remove packages from your project as well:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip uninstall package_name<\/pre><\/div>\n\n\n\n<p>As you can see, the above command is composed of three tokens:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>pip<\/strong>: Instructs the terminal to invoke the pip tool and pass the trailing tokens as arguments to it.<\/li><li><strong>uninstall<\/strong>: Instructs the pip tool that an installed package needs to be removed.<\/li><li><strong>package_name<\/strong>: Denotes the name of the package that has to be removed.<\/li><\/ul>\n\n\n\n<p>You can use the above syntax to uninstall any library, such as NumPy, like this:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip uninstall numpy<\/pre><\/div>\n\n\n\n<p>Once again, this syntax is similar to that of npm&#8217;s JavaScript package library:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>npm uninstall package_name<\/pre><\/div>\n\n\n\n<p>For uninstalling multiple packages, you can follow this syntax: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip uninstall package1 package2 package3 ...<\/pre><\/div>\n\n\n\n<p>This is how it would be used in a real-life scenario:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip uninstall numpy pandas<\/pre><\/div>\n\n\n\n<p>You can also use the requirements.txt file to uninstall a list of packages at once:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip uninstall -r requirements.txt<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Viewing All Installed Packages<\/h3>\n\n\n\n<p>Very often, you will need to view the list of packages that are installed in your project locally. Doing so helps you to identify if a package has been installed before, and helps you check if a certain version of a package is present in your project. The pip list command shows a list of all packages in your project. Here\u2019s how you can use the command:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip list<\/pre><\/div>\n\n\n\n<p>This will return an output similar to this:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>docutils (0.10)\nJinja2 (2.7.2)\n# ...and so on<\/pre><\/div>\n\n\n\n<p>Alternatively, you can pass an outdated option to retrieve a list of all packages with their current and latest available versions. This helps to identify which packages need to be updated. This is how the syntax looks like:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip list --outdated<\/pre><\/div>\n\n\n\n<p>This is how a usual output would look like: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>docutils (Current 0.10 Latest: 0.11)\nSphinx (Current: 1.2.1 Latest 1.2.2)<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Viewing Details for an Installed Package<\/h3>\n\n\n\n<p>The pip show command helps you to view the details of an installed package in your Python project. It returns details like version, author, license, and dependencies for the said package. Its syntax is simple:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip show sphinx<\/pre><\/div>\n\n\n\n<p>This is how a sample output would look like:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Name: Sphinx\nVersion: 1.4.5\nSummary: Python documentation generator\nHome-page: http:\/\/sphinx-doc.org\/\nAuthor: Georg Brandl\nAuthor-email: georg@python.org\nLicense: BSD\nLocation: \/my\/env\/lib\/python2.7\/site-packages\nRequires: docutils, snowballstemmer, alabaster, Pygments, imagesize, Jinja2, babel, six<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Freezing Package Versions<\/h3>\n\n\n\n<p>An important feature that all package managers need to have is the ability to freeze packages to their set versions. This is important when the project is being developed on multiple systems, and the same version of packages is required across all of them to maintain the stability of the project.&nbsp;<br><\/p>\n\n\n\n<p>While you can list out the installed packages with their versions with the list command, you will need to manually format them according to the requirements.txt file format that we saw earlier if you want to install these dependencies quickly on another system.<br><\/p>\n\n\n\n<p>The pip freeze command does this for you without any hassle. It prints the list of installed packages in the requirements format, and you can combine it with the output redirection operator of the command line to save it to a file. This is how the complete syntax would look like:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip freeze &gt; filename<\/pre><\/div>\n\n\n\n<p>You can directly create a ready-to-go requirements.txt file by using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip freeze &gt; requirements.txt<\/pre><\/div>\n\n\n\n<p>Now you can put this requirements.txt file in the project in which you want to install these packages. We have already seen an example above on how to use such a file to install packages at once.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">pip vs pip3<\/h3>\n\n\n\n<p>Since version 2.7.9 in Python 2 and version 3.4 for Python 3, the standard Python installation ships with a pip installation as well. But as Python moved from version 2 to 3, pip also was also upgraded to pip3. The introduction of Python 3 converted the old pip to a soft link to the new pip3. This means that when you are running the old pip on your command line with the new Python3 installed on your system, you are actually calling pip3.&nbsp;<br><\/p>\n\n\n\n<p>However, if you have both Python 2 and Python 3 installed on your system, then the pip command runs the pip installer associated with your Python 2 installation, and the pip3 command runs the pip3 installer associated with your Python 3 installation. The syntax for both pip and pip3 are the same, you just need to replace pip with pip3. Here\u2019s how you can install NumPy using pip3:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pip3 install numpy<\/pre><\/div>\n\n\n\n<p>All other commands work similarly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Python pip tool contains a list of commands to help you manage your packages efficiently. install and uninstall commands can be used to add or remove packages easily. list and freeze can be used to view the list of installed packages in raw\/formatted manner. show can be used to view all details of one package at once.<br><\/p>\n\n\n\n<p>This tutorial discussed, with reference to syntax and examples, the basics of PyPI packages, and how to use them with the pip tool. Now you are ready to start using the official Python package manager like a Python pro!<\/p>\n","protected":false},"excerpt":{"rendered":"You have probably seen the pip command somewhere in the Python documentation. If you have ever stumbled across any third-party library in Python, you know that the first line mentions the pip command. This one command plays a key role in your project: pip lets you download and manage packages. If you have ever used&hellip;","protected":false},"author":113,"featured_media":29228,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-29227","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python pip: A Complete Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"Looking to learn how Python pip works? Read the article to understand packages in Python, and how to manage them efficiently using Python pip!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-pip\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python pip: A Complete Guide\" \/>\n<meta property=\"og:description\" content=\"Looking to learn how Python pip works? Read the article to understand packages in Python, and how to manage them efficiently using Python pip!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-pip\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-15T16:59:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-20T15:35:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"680\" \/>\n\t<meta property=\"og:image:height\" content=\"1020\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kumar Harsh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kumar Harsh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/\"},\"author\":{\"name\":\"Kumar Harsh\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/c34979f56af7fa3dfafc6ab2aa4ac400\"},\"headline\":\"Python pip: A Complete Guide\",\"datePublished\":\"2021-02-15T16:59:58+00:00\",\"dateModified\":\"2022-07-20T15:35:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/\"},\"wordCount\":1552,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-pip\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-pip\/\",\"name\":\"Python pip: A Complete Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg\",\"datePublished\":\"2021-02-15T16:59:58+00:00\",\"dateModified\":\"2022-07-20T15:35:00+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/c34979f56af7fa3dfafc6ab2aa4ac400\"},\"description\":\"Looking to learn how Python pip works? Read the article to understand packages in Python, and how to manage them efficiently using Python pip!\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-pip\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg\",\"width\":680,\"height\":1020},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-pip\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python pip: A Complete Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/c34979f56af7fa3dfafc6ab2aa4ac400\",\"name\":\"Kumar Harsh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/01\/Kumar-Harsh-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/01\/Kumar-Harsh-150x150.jpg\",\"caption\":\"Kumar Harsh\"},\"description\":\"Kumar is a young technical writer, covering topics like JavaScript, Python, Ruby and Web Performance. He is currently working towards a bachelors degree in Computer Science and Engineering at National Institute of Technology Patna. Along with writing, he has also worked in software development roles with several start-ups and corporations alike. He joined the Career Karma team in January 2021.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/kumar-harsh\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python pip: A Complete Guide | Career Karma","description":"Looking to learn how Python pip works? Read the article to understand packages in Python, and how to manage them efficiently using Python pip!","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:\/\/careerkarma.com\/blog\/python-pip\/","og_locale":"en_US","og_type":"article","og_title":"Python pip: A Complete Guide","og_description":"Looking to learn how Python pip works? Read the article to understand packages in Python, and how to manage them efficiently using Python pip!","og_url":"https:\/\/careerkarma.com\/blog\/python-pip\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2021-02-15T16:59:58+00:00","article_modified_time":"2022-07-20T15:35:00+00:00","og_image":[{"width":680,"height":1020,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg","type":"image\/jpeg"}],"author":"Kumar Harsh","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Kumar Harsh","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-pip\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-pip\/"},"author":{"name":"Kumar Harsh","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/c34979f56af7fa3dfafc6ab2aa4ac400"},"headline":"Python pip: A Complete Guide","datePublished":"2021-02-15T16:59:58+00:00","dateModified":"2022-07-20T15:35:00+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-pip\/"},"wordCount":1552,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-pip\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-pip\/","url":"https:\/\/careerkarma.com\/blog\/python-pip\/","name":"Python pip: A Complete Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg","datePublished":"2021-02-15T16:59:58+00:00","dateModified":"2022-07-20T15:35:00+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/c34979f56af7fa3dfafc6ab2aa4ac400"},"description":"Looking to learn how Python pip works? Read the article to understand packages in Python, and how to manage them efficiently using Python pip!","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-pip\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-pip\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-pip\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/02\/kevin-canlas-cFFEeHNZEqw-unsplash.jpg","width":680,"height":1020},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-pip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python pip: A Complete Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/c34979f56af7fa3dfafc6ab2aa4ac400","name":"Kumar Harsh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/01\/Kumar-Harsh-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2021\/01\/Kumar-Harsh-150x150.jpg","caption":"Kumar Harsh"},"description":"Kumar is a young technical writer, covering topics like JavaScript, Python, Ruby and Web Performance. He is currently working towards a bachelors degree in Computer Science and Engineering at National Institute of Technology Patna. Along with writing, he has also worked in software development roles with several start-ups and corporations alike. He joined the Career Karma team in January 2021.","url":"https:\/\/careerkarma.com\/blog\/author\/kumar-harsh\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/29227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=29227"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/29227\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/29228"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=29227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=29227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=29227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}