{"id":8373,"date":"2024-09-12T12:18:21","date_gmt":"2024-09-12T12:18:21","guid":{"rendered":"https:\/\/metaschool.so\/articles\/?p=8373"},"modified":"2025-02-07T10:18:27","modified_gmt":"2025-02-07T10:18:27","slug":"how-to-update-pip","status":"publish","type":"post","link":"https:\/\/metaschool.so\/articles\/how-to-update-pip\/","title":{"rendered":"How to Update Pip in Python"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_56_1 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/metaschool.so\/articles\/how-to-update-pip\/#What_is_Pip\" title=\"What is Pip?\">What is Pip?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/metaschool.so\/articles\/how-to-update-pip\/#Methods_to_Update_Pip\" title=\"Methods to Update Pip\">Methods to Update Pip<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/metaschool.so\/articles\/how-to-update-pip\/#Troubleshooting_Common_Errors_When_Updating_Pip\" title=\"Troubleshooting Common Errors When Updating Pip\">Troubleshooting Common Errors When Updating Pip<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/metaschool.so\/articles\/how-to-update-pip\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/metaschool.so\/articles\/how-to-update-pip\/#FAQs\" title=\"FAQs\">FAQs<\/a><\/li><\/ul><\/nav><\/div>\n\n<p><a href=\"https:\/\/www.python.org\/about\/gettingstarted\/\" target=\"_blank\" rel=\"noopener\">Python<\/a> is a powerful and versatile programming language known for its simplicity and ease of learning. It receives regular patch updates approximately every few months and major updates about once a year. Keeping your Python version up to date, and ensuring you update Pip, is essential for accessing the latest features and performance improvements. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Pip\"><\/span>What is Pip?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Python includes a package manager called <a href=\"https:\/\/pypi.org\/project\/pip\/\" target=\"_blank\" rel=\"noopener\">Pip<\/a> and is bundled with the standard Python distribution starting from Python 3.4. Pip is the package installer for Python, serving as a crucial tool for managing Python libraries and dependencies. It allows you to easily install, upgrade, and remove Python packages from the Python Package Index (PyPI) and other repositories.<\/p>\n\n\n\n<p>In this guide, we will demonstrate how to update Pip on a Windows system. However, the commands to update Pip are quite similar across different operating systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Methods_to_Update_Pip\"><\/span>Methods to Update Pip<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that we understand the importance of keeping pip up to date, let&#8217;s dive into three different methods you can use to easily update pip to the latest version.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Updating from Python<\/h3>\n\n\n\n<p>Open the Command Prompt or PowerShell (Terminal if you are a MacOS or Linux user). Then check if you already have Pip installed using the following command: <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"python -m pip --version\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">python<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-m<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">pip<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--version<\/span><\/span><\/code><\/pre><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"504\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162647.png\" alt=\"update pip \" class=\"wp-image-8378\" style=\"width:549px;height:auto\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162647.png 957w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162647-300x158.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162647-150x79.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162647-768x404.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/figure>\n<\/div>\n\n\n<p>As you can see, I already had Pip 24.0 installed. To upgrade Pip to the latest version, use the following command:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\" python -m pip install --upgrade pip\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">python<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-m<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">pip<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">install<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--upgrade<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">pip<\/span><\/span><\/code><\/pre><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"561\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162928.png\" alt=\"update pip \" class=\"wp-image-8379\" style=\"width:547px;height:auto\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162928.png 956w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162928-300x176.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162928-150x88.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-162928-768x451.png 768w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/figure>\n<\/div>\n\n\n<p>After the upgrade is complete run the previous command to check the version of Pip installed. The version of Pip has upgraded to 24.2.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Using the Pip Install Script<\/h3>\n\n\n\n<p>Open the Command Prompt or PowerShell (Terminal if you are a MacOS or Linux user). We will use the <code>curl<\/code> command to download the script file for Pip using the following command: <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"curl https:\/\/bootstrap.pypa.io\/get-pip.py -o get-pip.py\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">curl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">https:\/\/bootstrap.pypa.io\/get-pip.py<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-o<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">get-pip.py<\/span><\/span><\/code><\/pre><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"959\" height=\"506\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164314.png\" alt=\"update pip \" class=\"wp-image-8380\" style=\"width:544px;height:auto\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164314.png 959w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164314-300x158.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164314-150x79.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164314-768x405.png 768w\" sizes=\"auto, (max-width: 959px) 100vw, 959px\" \/><\/figure>\n<\/div>\n\n\n<p>After the download is complete, use the <code>ls<\/code> command to check if the <code>get-pip.py<\/code> file is present in the current directory. To download the latest version of pip, use the following command: <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"python3 get-pip.py\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">python3<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">get-pip.py<\/span><\/span><\/code><\/pre><\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"959\" height=\"656\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164557.png\" alt=\"update pip \" class=\"wp-image-8381\" style=\"width:544px;height:auto\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164557.png 959w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164557-300x205.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164557-150x103.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-164557-768x525.png 768w\" sizes=\"auto, (max-width: 959px) 100vw, 959px\" \/><\/figure>\n<\/div>\n\n\n<p>You can use the command <code>python -m pip --version<\/code> to check the version installed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 3: Downloading the Installer<\/h3>\n\n\n\n<p>Start by checking the installed version of Python. Visit <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">Python&#8217;s official website<\/a> to verify if you have the latest version installed or an older one. The version you have is an older one, click on the yellow Download button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1165\" height=\"854\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165136.png\" alt=\"update pip \" class=\"wp-image-8382\" style=\"width:547px;height:auto\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165136.png 1165w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165136-300x220.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165136-1024x751.png 1024w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165136-150x110.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165136-768x563.png 768w\" sizes=\"auto, (max-width: 1165px) 100vw, 1165px\" \/><\/figure>\n<\/div>\n\n\n<p>After the download is complete, you will see a .exe file (like the now shown below) in your Downloads folder.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"302\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165427.png\" alt=\"update pip \" class=\"wp-image-8383\" style=\"width:546px;height:auto\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165427.png 1017w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165427-300x89.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165427-150x45.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165427-768x228.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/figure>\n<\/div>\n\n\n<p>Double click the file and start the installation process.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"508\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165502.png\" alt=\"update pip \" class=\"wp-image-8384\" style=\"width:545px;height:auto\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165502.png 829w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165502-300x184.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165502-150x92.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2024\/09\/Screenshot-2024-09-12-165502-768x471.png 768w\" sizes=\"auto, (max-width: 829px) 100vw, 829px\" \/><\/figure>\n<\/div>\n\n\n<p>After the installation is complete, you can check the version installed using the Command Prompt.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 4: Updating Pip to a Specific Version<\/h3>\n\n\n\n<p>If you want to upgrade to a specific version of Pip rather than the latest one, you can specify the desired version number in your upgrade command. Open the Command Prompt or PowerShell (Terminal if you are a MacOS or Linux user). We will use the same method as shown in Method 1 with a minor modification: <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"pip install --upgrade pip==x.y.z\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">pip<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">install<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--upgrade<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">pip==x.y.z<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>For example, to upgrade Pip to version 21.3.1 from version 20.2.4, use the following command: <\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"pip install --upgrade pip==21.3.1\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">pip<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">install<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--upgrade<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">pip==<\/span><span style=\"color: #B5CEA8\">21.3<\/span><span style=\"color: #CE9178\">.1<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Troubleshooting_Common_Errors_When_Updating_Pip\"><\/span>Troubleshooting Common Errors When Updating Pip<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When updating pip, you might encounter several common errors that can disrupt the process. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>One frequent issue is a permissions error\u2014if you see messages like \u201cPermission Denied,\u201d try running the update command with elevated privileges (using <code>sudo<\/code> on Unix-based systems) or add the <code>--user<\/code> flag to install pip only for your user account. <\/li>\n\n\n\n<li>Another common error involves SSL certificate verification; if you encounter an \u201cSSL certificate verify failed\u201d message, ensure your system\u2019s certificates are up-to-date or consider using the <code>--trusted-host<\/code> option with pip. <\/li>\n\n\n\n<li>Network connection issues can sometimes lead to timeouts or connection errors during the update process, so verifying your internet connection or configuring proxy settings may help. <\/li>\n\n\n\n<li>Finally, conflicts with outdated dependencies such as setuptools or wheel can cause issues\u2014updating these packages before updating pip can resolve these conflicts. <\/li>\n<\/ul>\n\n\n\n<p>By troubleshooting these common errors, you can ensure a smoother pip update experience.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We explored several methods to update Pip effectively on a Windows system, though these techniques are applicable across different operating systems like Linux and MacOS as well (with some slight modifications).<\/p>\n\n\n\n<p>Here is a quick summary of the methods we covered:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Method 1:<\/strong> Upgrade Pip using the <code>python -m pip install --upgrade pip<\/code> command after checking your current version.<\/li>\n\n\n\n<li><strong>Method 2: <\/strong>Download and run the <code>get-pip.py<\/code> script using <code>curl<\/code> and <code>python3 get-pip.py<\/code> to install the latest version of Pip.<\/li>\n\n\n\n<li><strong>Method 3: <\/strong>Download the latest Python installer from the official website and run it to update Pip along with Python.<\/li>\n\n\n\n<li><strong>Method 4: <\/strong>Specify the exact version you want by using <code>pip install --upgrade pip==x.y.z<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>By following these methods, you can ensure that both Python and Pip are updated to their latest versions or according to your project&#8217;s needs, allowing you to maintain a robust and efficient development environment.<\/p>\n\n\n\n<p>Python is also crucial in the context of blockchain development. Its versatility and powerful libraries make it a good choice for building and interacting with blockchain systems. To understand why Python is so effective for blockchain projects, check out our article,<a href=\"https:\/\/metaschool.so\/articles\/reasons-why-develop-blockchain-python\/\">&nbsp;7 Reasons Why You Should Develop a Blockchain Using Python<\/a>&nbsp;which explores the numerous advantages of using Python for blockchain development.<\/p>\n\n\n\n<p><strong>Related Reading:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/metaschool.so\/articles\/python-exponents\">Python Exponent: Complete Guide To Exponents in Python<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/metaschool.so\/articles\/python-interview-questions\">Top 50 Python Interview Questions and Answers (2024)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/metaschool.so\/articles\/python-switch-case\">Python Switch Case \u2013 A Comprehensive Guide<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/metaschool.so\/articles\/python-block-comment\">How to Comment A Code Block in Python \u2014 Explained<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1726143215545\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Why should I update Pip regularly?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Updating Pip regularly ensures that you benefit from the latest features, performance improvements, and security patches. New versions of Pip often include bug fixes, enhancements, and better support for recent Python packages. Keeping Pip up-to-date helps maintain compatibility with the latest libraries and tools, which is crucial for a smooth development experience.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1726143223438\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What should I do if I encounter errors while updating Pip?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>1. <strong>Check Permissions:<\/strong> Ensure you have the necessary permissions to install or upgrade software. Use <code>sudo<\/code> on Unix-based systems or run Command Prompt\/PowerShell as an administrator on Windows.<br \/><strong>2. Verify Python Installation:<\/strong> Ensure that Python is correctly installed and that you are using the correct version for your environment.<br \/>3. <strong>Check for Conflicts:<\/strong> Sometimes, package conflicts or outdated dependencies can cause issues. Resolve any dependency conflicts before attempting the update again.<br \/><strong>4. Consult Documentation:<\/strong> Review the Pip and Python documentation for specific error messages or issues related to your version.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1726143277692\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How can I check which version of Pip I have?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>You can check the installed version by running the following command in your command prompt or terminal: <code>pip --version<\/code><\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":19,"featured_media":10941,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[292],"tags":[],"class_list":["post-8373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-answers"],"_links":{"self":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/8373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/comments?post=8373"}],"version-history":[{"count":12,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/8373\/revisions"}],"predecessor-version":[{"id":12257,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/8373\/revisions\/12257"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/media\/10941"}],"wp:attachment":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/media?parent=8373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/categories?post=8373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/tags?post=8373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}