{"id":2854,"date":"2018-09-22T14:02:57","date_gmt":"2018-09-22T08:32:57","guid":{"rendered":"http:\/\/www.csestack.org\/?p=2854"},"modified":"2023-06-05T17:07:42","modified_gmt":"2023-06-05T11:37:42","slug":"managing-python-modules-using-pip","status":"publish","type":"post","link":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/","title":{"rendered":"Complete Guide for Managing Python Modules using Pip"},"content":{"rendered":"\n<p>As you go dealing with multiple projects you need to install plenty of Python packages as per your every project needs.<\/p>\n\n\n\n<p>That&#8217;s where you need a tool to manage Python packages. Managing Python modules using Pip is my First and Best choice.<\/p>\n\n\n\n<p>In this tutorial, you will learn about to install and to manage Python packages.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fd5e93884cd\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fd5e93884cd\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#What_is_Pip\" >What is Pip?<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Why_do_You_Need_a_Separate_Package_Management_Tool_like_Pip\" >Why do You Need a Separate Package Management Tool like Pip?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#How_to_Install_pip_on_Your_System\" >How to Install pip on Your System?<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Command_for_Installing_pip_on_the_Linux_System\" >Command for Installing pip on the Linux System.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Command_for_Installing_pip_on_Windows_System\" >Command for Installing pip on Windows System:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Managing_Python_Modules_Using_Pip_Tool\" >Managing Python Modules Using Pip Tool<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Installing_Python_Package_using_pip\" >Installing Python Package using pip<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Dealing_with_Multiple_Python_Versions_and_Pip\" >Dealing with Multiple Python Versions and Pip<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Command_for_Upgrading_Pip_Tool\" >Command for Upgrading Pip Tool<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Show_List_of_all_Installed_Packages_using_pip\" >Show List of all Installed Packages using pip:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#Remove_Uninstall_Python_Package\" >Remove \/ Uninstall Python Package<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#List_of_Pip_Commands\" >List of Pip Commands<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading has-text-align-center\"><span class=\"ez-toc-section\" id=\"What_is_Pip\"><\/span>What is Pip?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Pip is a package management tool for installing and managing all the Python packages on your system. You can use it with Windows as well as Linux system for managing Python libraries.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_do_You_Need_a_Separate_Package_Management_Tool_like_Pip\"><\/span><strong>Why do You Need a Separate Package Management Tool like Pip?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>There are two problems pip deal with for managing packages in Python.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>User-Friendly Commands:<\/strong> It provides many user-friendly commands so that you can easily install, uninstall or manage Python packages.<\/li>\n\n\n\n<li><strong>Resolving Package Dependencies:<\/strong> For installing new Python package, there can be dependencies among multiple other packages. If you are installing Python package using pip, it installs all other dependent Python packages.<\/li>\n<\/ul>\n\n\n\n<p>In this article, I will share all the commands you need to manage Python packages on your&nbsp;Linux as well as Windows systems.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-center\"><span class=\"ez-toc-section\" id=\"How_to_Install_pip_on_Your_System\"><\/span>How to Install pip on Your System?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The pip is the most preferred installer program for Python. Starting with Python 2.7.9 for Python 2 and Python 3.4 for Python 3, pip comes preinstalled with the Python binary installation.<\/p>\n\n\n\n<p>If you don&#8217;t have Python installed on your system, follow the&nbsp;<a href=\"https:\/\/www.csestack.org\/getting-started-with-python-for-beginners\/\">Python installation guide<\/a>.<\/p>\n\n\n\n<p>If you are using the latest Python versions, you don&#8217;t need to install pip explicitly. You can move to the next section.<\/p>\n\n\n\n<p><strong>How to Check if the Pip is already Installed on Your System?<\/strong><\/p>\n\n\n\n<p>Simply run the following command, if you are not sure if the pip is installed on your system or not.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip freeze<\/pre>\n\n\n\n<p>If the pip is installed on your system, above command will list out all the Python packages installed on your system.<\/p>\n\n\n\n<p>If it is not installed on your system, it will show the result as&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The program 'pip' is currently not installed. \nYou can install it by typing: sudo apt install python-pip<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Command_for_Installing_pip_on_the_Linux_System\"><\/span>Command for Installing pip on the Linux System.<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Run following command in Linux terminal.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install python-pip<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Command_for_Installing_pip_on_Windows_System\"><\/span>Command for Installing pip on Windows System:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>If you are a window user, open Python interpreter prompt and run a command given below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python -m pip install -U pip<\/pre>\n\n\n\n<p>As we have installed pip on your system, we will see- how to Install other Python modules using the pip tool?<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-center\"><span class=\"ez-toc-section\" id=\"Managing_Python_Modules_Using_Pip_Tool\"><\/span>Managing Python Modules Using Pip Tool<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>If you are a Windows&nbsp;user&#8230;<\/strong><\/p>\n\n\n\n<p>All the pip commands for managing Python packages work on the command prompt.<\/p>\n\n\n\n<p>Open a command prompt to run pip commands.<\/p>\n\n\n\n<p><strong>If you are a Linux user&#8230;<\/strong><\/p>\n\n\n\n<p>Pip tool works on the Linux Terminal.<\/p>\n\n\n\n<p>Open Terminal to run pip commands.<\/p>\n\n\n\n<p><strong>Note:<\/strong> If you don&#8217;t have root privilege, run all the commands using &#8220;sudo&#8221; keyword.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Installing_Python_Package_using_pip\"><\/span>Installing Python Package using pip<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install &lt;package_name&gt;<\/pre>\n\n\n\n<p>For example, if you want to install a package called NumPy.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install panda<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"465\" height=\"331\" src=\"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png\" alt=\"\" class=\"wp-image-7736\" srcset=\"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png 465w, https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1-300x214.png 300w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><\/figure><\/div>\n\n\n<p><strong>Note:<\/strong> Panda is one of the&nbsp;<a href=\"https:\/\/www.csestack.org\/python-libraries-for-data-science\/\">best Python Libraries for Data Science<\/a>. Explore it if you want to master data science.<\/p>\n\n\n\n<p>Here, all the packages are installed from PyPI <strong>(Python Package Index)<\/strong>.<\/p>\n\n\n\n<p><strong>What is PyPI?<\/strong><\/p>\n\n\n\n<p>It is a repository from where all the packages mentioned in command are downloaded and installed. For this, you need an internet connection connected to your system.<\/p>\n\n\n\n<p><strong>Installing Specific Python Package Version<\/strong><\/p>\n\n\n\n<p>By default, it installs the Python package having the latest version. If you want to install a specific version of the Python package, you can do that.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install 'SomeProject==1.4'<\/pre>\n\n\n\n<p>Here,&nbsp;<code>SomeProject<\/code> is the project name and 1.4 is its version.<\/p>\n\n\n\n<p><strong>Installing Python Packages Offline<\/strong><\/p>\n\n\n\n<p>You can also manually download any package and install it. The downloaded package is bundled with a tar zip file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install &lt;local\/path\/to\/package&gt;<\/pre>\n\n\n\n<p>For example,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install .\/downloads\/SomeProject-1.0.4.tar.gz<\/pre>\n\n\n\n<p>This command is useful when you don&#8217;t have an internet connection connected to your system.<\/p>\n\n\n\n<p>Use <code>-e<\/code> option to <a href=\"https:\/\/www.csestack.org\/install-python-module-local-directory-pip\/\">install the Python package in editable mode<\/a>.<\/p>\n\n\n\n<p><strong>Installing Python Packages from Any other Source URL<\/strong><\/p>\n\n\n\n<p>Instead of installing Python packages from the default PyPI source, you can install it from any valid URL.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install --index-url&nbsp;http:\/\/my.package.repo\/simple\/SomeProject<\/pre>\n\n\n\n<p>Again, it requires an internet connection.<\/p>\n\n\n\n<p>Once you have installed Python libraries, you can import and use them in your program.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Dealing_with_Multiple_Python_Versions_and_Pip\"><\/span>Dealing with Multiple Python Versions and Pip<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Do you have multiple Python versions installed on your systems like Python 2.x and Python 3.x?<\/p>\n\n\n\n<p>If yes, sometimes it becomes difficult to manage the Python modules on different Python versions.<\/p>\n\n\n\n<p>Remember, you have to install the modules separately for each version to work.<\/p>\n\n\n\n<p>When you run below command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python -m pip install psutil<\/pre>\n\n\n\n<p>It installs the psutil module for the default Python version on your system.<\/p>\n\n\n\n<p>If you want to execute the Python module for a specific Python version, find below command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python-3.7 -m pip install psutil<\/pre>\n\n\n\n<p>This will install psutil Python module for your python-3.7.<\/p>\n\n\n\n<p>To install a Python module on your Python 3 version. run below command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">py -m pip install psutil<\/pre>\n\n\n\n<p>This is the proper way of dealing with multiple Python versions and PIP.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Command_for_Upgrading_Pip_Tool\"><\/span>Command for Upgrading Pip Tool<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>While running Pip commands you may sometime come across a similar message as below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">You are using pip version 10.0.1, however version 18.0 is available.\nYou should consider upgrading via the 'python -m pip install --upgrade pip' command.<\/pre>\n\n\n\n<p>If you have an older version of pip, it is always recommended to upgrade the version.<\/p>\n\n\n\n<p>Here is the command to upgrade pip version.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python -m pip install --upgrade pip<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Show_List_of_all_Installed_Packages_using_pip\"><\/span>Show List of all Installed Packages using pip:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Use freeze command. It lists out all the installed Python packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip freeze<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"471\" height=\"167\" src=\"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/pip-freeze-to-get-all-installed-Python-packages.jpg\" alt=\"pip freeze to get all installed Python packages\" class=\"wp-image-7737\" srcset=\"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/pip-freeze-to-get-all-installed-Python-packages.jpg 471w, https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/pip-freeze-to-get-all-installed-Python-packages-300x106.jpg 300w\" sizes=\"(max-width: 471px) 100vw, 471px\" \/><\/figure><\/div>\n\n\n<p>You can also use the list command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip list<\/pre>\n\n\n\n<p>It shows out all the installed Python packages on your system with its version.<\/p>\n\n\n\n<p>Also, watch a video where I have given a live demo and shared some of the very useful pip tricks. These tricks will help you managing installed Python packages.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to Find Python Module List and Package Details using pip [Useful Tricks]\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/_eafBNPx7oM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>If you want to learn it hard way, check this <a href=\"https:\/\/www.csestack.org\/python-list-installed-modules-versions-pip\/\">article about listing Python packages<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Remove_Uninstall_Python_Package\"><\/span>Remove \/ Uninstall Python Package<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Use pip uninstall command to uninstall Python module from your system.<\/p>\n\n\n\n<p>Syntax:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip uninstall &lt;package_name&gt;<\/pre>\n\n\n\n<p>For Example, here I&#8217;m install panda Python module that I have installed earlier.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip uninstall panda<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"469\" height=\"297\" src=\"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/unistall-Python-module-using-pip.png\" alt=\"uninstall Python module using pip\" class=\"wp-image-7738\" srcset=\"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/unistall-Python-module-using-pip.png 469w, https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/unistall-Python-module-using-pip-300x190.png 300w\" sizes=\"(max-width: 469px) 100vw, 469px\" \/><\/figure><\/div>\n\n\n<p>Note: You don&#8217;t need to provide Python package version while uninstalling.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-align-center\"><span class=\"ez-toc-section\" id=\"List_of_Pip_Commands\"><\/span>List of Pip Commands<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Pip is the best tool for managing Python packages.<\/p>\n\n\n\n<p>If you want to explore it further, there are many useful pip commands to make your work easy.<\/p>\n\n\n\n<p>You can check all pip commands using <code>pip --help<\/code>.<\/p>\n\n\n<div class=\"posttable\">\n<table>\n<tbody>\n<tr>\n<th>pip Commands<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>install<\/td>\n<td>Install packages.<\/td>\n<\/tr>\n<tr>\n<td>download<\/td>\n<td>Download packages.<\/td>\n<\/tr>\n<tr>\n<td>uninstall<\/td>\n<td>Uninstall packages.<\/td>\n<\/tr>\n<tr>\n<td>freeze<\/td>\n<td>Output installed packages in requirements format.<\/td>\n<\/tr>\n<tr>\n<td>list<\/td>\n<td>List installed packages.<\/td>\n<\/tr>\n<tr>\n<td>show<\/td>\n<td>Show information about installed packages.<\/td>\n<\/tr>\n<tr>\n<td>check<\/td>\n<td>Verify installed packages have compatible dependencies.<\/td>\n<\/tr>\n<tr>\n<td>config<\/td>\n<td>Manage local and global configuration.<\/td>\n<\/tr>\n<tr>\n<td>search<\/td>\n<td>Search PyPI for packages.<\/td>\n<\/tr>\n<tr>\n<td>wheel<\/td>\n<td>Build wheels from your requirements.<\/td>\n<\/tr>\n<tr>\n<td>hash<\/td>\n<td>Compute hashes of package archives.<\/td>\n<\/tr>\n<tr>\n<td>completion<\/td>\n<td>A helper command used for command completion.<\/td>\n<\/tr>\n<tr>\n<td>help<\/td>\n<td>Show help for commands.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n\n<p>Exploring these pip commands and keeping them handy, will really help you with your Python project management activities in the long run.<\/p>\n\n\n\n<p>In this tutorial, you have learned all the basic pip commands and managing Python modules using Pip. If you have any point to&nbsp;discuss, feel free to write a comment.<\/p>\n\n\n\n<p class=\"has-text-align-center\">Happy Pythoning!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What are the commands for managing Python modules using Pip? How to install, uninstall and upgrade Python packages? Complete Guide.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,73],"tags":[196,72],"class_list":["post-2854","post","type-post","status-publish","format-standard","hentry","category-code","category-python","tag-pip","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Complete Guide for Managing Python Modules using Pip<\/title>\n<meta name=\"description\" content=\"What are the commands for managing Python modules using Pip? How to install, uninstall and upgrade Python packages? Complete Guide.\" \/>\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.csestack.org\/managing-python-modules-using-pip\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Complete Guide for Managing Python Modules using Pip\" \/>\n<meta property=\"og:description\" content=\"What are the commands for managing Python modules using Pip? How to install, uninstall and upgrade Python packages? Complete Guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/\" \/>\n<meta property=\"og:site_name\" content=\"CSEstack\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/aniruddha.ca\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/aniruddha.ca\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-22T08:32:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-05T11:37:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png\" \/>\n<meta name=\"author\" content=\"Aniruddha Chaudhari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ani_chaudhari\" \/>\n<meta name=\"twitter:site\" content=\"@ani_chaudhari\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aniruddha Chaudhari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/\"},\"author\":{\"name\":\"Aniruddha Chaudhari\",\"@id\":\"https:\\\/\\\/www.csestack.org\\\/#\\\/schema\\\/person\\\/634ef1a9c4f38b0d340c6d45fa771218\"},\"headline\":\"Complete Guide for Managing Python Modules using Pip\",\"datePublished\":\"2018-09-22T08:32:57+00:00\",\"dateModified\":\"2023-06-05T11:37:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/\"},\"wordCount\":1140,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/#\\\/schema\\\/person\\\/634ef1a9c4f38b0d340c6d45fa771218\"},\"image\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/install-python-module-using-pip-1.png\",\"keywords\":[\"pip\",\"Python\"],\"articleSection\":[\"Code\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/\",\"url\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/\",\"name\":\"Complete Guide for Managing Python Modules using Pip\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/install-python-module-using-pip-1.png\",\"datePublished\":\"2018-09-22T08:32:57+00:00\",\"dateModified\":\"2023-06-05T11:37:42+00:00\",\"description\":\"What are the commands for managing Python modules using Pip? How to install, uninstall and upgrade Python packages? Complete Guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/install-python-module-using-pip-1.png\",\"contentUrl\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/install-python-module-using-pip-1.png\",\"width\":465,\"height\":331},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.csestack.org\\\/managing-python-modules-using-pip\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.csestack.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Complete Guide for Managing Python Modules using Pip\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.csestack.org\\\/#website\",\"url\":\"https:\\\/\\\/www.csestack.org\\\/\",\"name\":\"CSEstack\",\"description\":\"Computer Science &amp; Programming Portal\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/#\\\/schema\\\/person\\\/634ef1a9c4f38b0d340c6d45fa771218\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.csestack.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.csestack.org\\\/#\\\/schema\\\/person\\\/634ef1a9c4f38b0d340c6d45fa771218\",\"name\":\"Aniruddha Chaudhari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Aniruddha-Chaudhari.jpg\",\"url\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Aniruddha-Chaudhari.jpg\",\"contentUrl\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Aniruddha-Chaudhari.jpg\",\"width\":634,\"height\":634,\"caption\":\"Aniruddha Chaudhari\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.csestack.org\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/Aniruddha-Chaudhari.jpg\"},\"description\":\"I am a Python enthusiast who loves Linux and Vim. I hold a Master of Computer Science degree from NIT Trichy and have 10 years of experience in the IT industry, focusing on the Software Development Lifecycle from Requirements Gathering, Design, Development to Deployment. I have worked at IBM, Ericsson, and NetApp, and I share my knowledge on CSEstack.org.\",\"sameAs\":[\"https:\\\/\\\/www.csestack.org\",\"https:\\\/\\\/www.facebook.com\\\/aniruddha.ca\",\"pythonwithani\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/aniruddha28\\\/\",\"https:\\\/\\\/x.com\\\/ani_chaudhari\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCw0a__B0eJsvCujkSIfLTAA\"],\"url\":\"https:\\\/\\\/www.csestack.org\\\/author\\\/anicse\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Complete Guide for Managing Python Modules using Pip","description":"What are the commands for managing Python modules using Pip? How to install, uninstall and upgrade Python packages? Complete Guide.","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.csestack.org\/managing-python-modules-using-pip\/","og_locale":"en_US","og_type":"article","og_title":"Complete Guide for Managing Python Modules using Pip","og_description":"What are the commands for managing Python modules using Pip? How to install, uninstall and upgrade Python packages? Complete Guide.","og_url":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/","og_site_name":"CSEstack","article_publisher":"https:\/\/www.facebook.com\/aniruddha.ca","article_author":"https:\/\/www.facebook.com\/aniruddha.ca","article_published_time":"2018-09-22T08:32:57+00:00","article_modified_time":"2023-06-05T11:37:42+00:00","og_image":[{"url":"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png","type":"","width":"","height":""}],"author":"Aniruddha Chaudhari","twitter_card":"summary_large_image","twitter_creator":"@ani_chaudhari","twitter_site":"@ani_chaudhari","twitter_misc":{"Written by":"Aniruddha Chaudhari","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#article","isPartOf":{"@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/"},"author":{"name":"Aniruddha Chaudhari","@id":"https:\/\/www.csestack.org\/#\/schema\/person\/634ef1a9c4f38b0d340c6d45fa771218"},"headline":"Complete Guide for Managing Python Modules using Pip","datePublished":"2018-09-22T08:32:57+00:00","dateModified":"2023-06-05T11:37:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/"},"wordCount":1140,"commentCount":6,"publisher":{"@id":"https:\/\/www.csestack.org\/#\/schema\/person\/634ef1a9c4f38b0d340c6d45fa771218"},"image":{"@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#primaryimage"},"thumbnailUrl":"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png","keywords":["pip","Python"],"articleSection":["Code","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/","url":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/","name":"Complete Guide for Managing Python Modules using Pip","isPartOf":{"@id":"https:\/\/www.csestack.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#primaryimage"},"image":{"@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#primaryimage"},"thumbnailUrl":"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png","datePublished":"2018-09-22T08:32:57+00:00","dateModified":"2023-06-05T11:37:42+00:00","description":"What are the commands for managing Python modules using Pip? How to install, uninstall and upgrade Python packages? Complete Guide.","breadcrumb":{"@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.csestack.org\/managing-python-modules-using-pip\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#primaryimage","url":"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png","contentUrl":"https:\/\/www.csestack.org\/wp-content\/uploads\/2020\/08\/install-python-module-using-pip-1.png","width":465,"height":331},{"@type":"BreadcrumbList","@id":"https:\/\/www.csestack.org\/managing-python-modules-using-pip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.csestack.org\/"},{"@type":"ListItem","position":2,"name":"Complete Guide for Managing Python Modules using Pip"}]},{"@type":"WebSite","@id":"https:\/\/www.csestack.org\/#website","url":"https:\/\/www.csestack.org\/","name":"CSEstack","description":"Computer Science &amp; Programming Portal","publisher":{"@id":"https:\/\/www.csestack.org\/#\/schema\/person\/634ef1a9c4f38b0d340c6d45fa771218"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.csestack.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.csestack.org\/#\/schema\/person\/634ef1a9c4f38b0d340c6d45fa771218","name":"Aniruddha Chaudhari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.csestack.org\/wp-content\/uploads\/2019\/03\/Aniruddha-Chaudhari.jpg","url":"https:\/\/www.csestack.org\/wp-content\/uploads\/2019\/03\/Aniruddha-Chaudhari.jpg","contentUrl":"https:\/\/www.csestack.org\/wp-content\/uploads\/2019\/03\/Aniruddha-Chaudhari.jpg","width":634,"height":634,"caption":"Aniruddha Chaudhari"},"logo":{"@id":"https:\/\/www.csestack.org\/wp-content\/uploads\/2019\/03\/Aniruddha-Chaudhari.jpg"},"description":"I am a Python enthusiast who loves Linux and Vim. I hold a Master of Computer Science degree from NIT Trichy and have 10 years of experience in the IT industry, focusing on the Software Development Lifecycle from Requirements Gathering, Design, Development to Deployment. I have worked at IBM, Ericsson, and NetApp, and I share my knowledge on CSEstack.org.","sameAs":["https:\/\/www.csestack.org","https:\/\/www.facebook.com\/aniruddha.ca","pythonwithani","https:\/\/www.linkedin.com\/in\/aniruddha28\/","https:\/\/x.com\/ani_chaudhari","https:\/\/www.youtube.com\/channel\/UCw0a__B0eJsvCujkSIfLTAA"],"url":"https:\/\/www.csestack.org\/author\/anicse\/"}]}},"_links":{"self":[{"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/posts\/2854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/comments?post=2854"}],"version-history":[{"count":25,"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/posts\/2854\/revisions"}],"predecessor-version":[{"id":10373,"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/posts\/2854\/revisions\/10373"}],"wp:attachment":[{"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/media?parent=2854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/categories?post=2854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.csestack.org\/wp-json\/wp\/v2\/tags?post=2854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}