{"id":2058,"date":"2023-04-01T21:28:07","date_gmt":"2023-04-01T13:28:07","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2058"},"modified":"2023-04-07T06:05:09","modified_gmt":"2023-04-06T22:05:09","slug":"python-upgrade-pip","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/04\/01\/python-upgrade-pip\/","title":{"rendered":"Python\u5347\u7ea7pip"},"content":{"rendered":"<h2>\u7ec8\u7aef\u4e2d\u5347\u7ea7<\/h2>\n<h3>Python3\u5347\u7ea7<\/h3>\n<p><!-- more --><\/p>\n<pre><code>C:\\Windows\\system32&gt;pip3 --version\npip 10.0.0b2 from C:\\Program Files\\Python36\\lib\\site-packages\\pip-10.0.0b2-py3.6.egg\\pip (python 3.6)\n\nC:\\Windows\\system32&gt;python3 -m pip install --upgrade pip\nCollecting pip\n  Using cached https:\/\/files.pythonhosted.org\/packages\/46\/dc\/7fd5df840efb3e56c8b4f768793a237ec4ee59891959d6a215d63f727023\/pip-19.0.1-py2.py3-none-any.whl\nInstalling collected packages: pip\n  Found existing installation: pip 10.0.0b2\n    Uninstalling pip-10.0.0b2:\n      Successfully uninstalled pip-10.0.0b2\nSuccessfully installed pip-19.0.1\n\n\/\/\u5982\u53d1\u751f\u9519\u8bef\uff0c\u5220\u9664\u6587\u4ef6\u5939\uff1aC:\\Program Files\\Python36\\lib\\site-packages\\pip-19.0.1.dist-info \u540e\u91cd\u65b0\u5b89\u88c5\n\nC:\\Windows\\system32&gt;pip3 --version\npip 19.0.1 from c:\\program files\\python36\\lib\\site-packages\\pip (python 3.6)<\/code><\/pre>\n<h3>Python2\u5347\u7ea7<\/h3>\n<pre><code>C:\\Windows\\system32&gt;pip --version\npip 10.0.0b2 from C:\\Program Files\\Python27\\lib\\site-packages\\pip-10.0.0b2-py2.7.egg\\pip (python 2.7)\n\nC:\\Windows\\system32&gt;python -m pip install --upgrade pip\nCollecting pip\n  Using cached https:\/\/files.pythonhosted.org\/packages\/46\/dc\/7fd5df840efb3e56c8b4f768793a237ec4ee59891959d6a215d63f727023\/pip-19.0.1-py2.py3-none-any.whl\nInstalling collected packages: pip\n  Found existing installation: pip 10.0.0b2\n    Uninstalling pip-10.0.0b2:\n      Successfully uninstalled pip-10.0.0b2\nSuccessfully installed pip-19.0.1\n\n\/\/\u5982\u53d1\u751f\u9519\u8bef\uff0c\u5220\u9664\u6587\u4ef6\u5939\uff1aC:\\Program Files\\Python27\\lib\\site-packages\\pip-19.0.1.dist-info \u540e\u91cd\u65b0\u5b89\u88c5\n\nC:\\Windows\\system32&gt;pip --version\npip 19.0.1 from c:\\program files\\python27\\lib\\site-packages\\pip (python 2.7)<\/code><\/pre>\n<blockquote>\n<p>\u6ce8\uff1a\u9700\u4f7f\u7528\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cCMD<\/p>\n<\/blockquote>\n<h2>PyCharm\u4e2d\u5347\u7ea7<\/h2>\n<p>PyCharm\u4e2d\u7684pip\u5982\u4f55\u5347\u7ea7\uff1f\u603b\u662f\u5347\u7ea7\u4e0d\u4e0a\uff1f<\/p>\n<p>pip\u5e93\u4e00\u76f4\u65e0\u6cd5\u5347\u7ea7\u523010.0\u7248\u672c\uff0c\u6bcf\u6b21\u5347\u7ea7\u90fd\u663e\u793a\u6210\u529f\uff0c\u4f46\u7248\u672c\u8fd8\u662f\u4e4b\u524d\u7684\uff0c\u5982\u4f55\u89e3\u51b3\uff1f<\/p>\n<p>\u53cc\u51fbpip\u540e\u9762\u7684\u84dd\u8272\u5347\u7ea7\u7bad\u5934\u6309\u94ae\u3002\u5f39\u51fa\u66f4\u65b0\u5305\u5bf9\u8bdd\u6846\uff0c<code>Specify version<\/code>\u8981\u6253\u5bf9\u52fe\u3002\u7136\u540einstall package\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ec8\u7aef\u4e2d\u5347\u7ea7 Python3\u5347\u7ea7 C:\\Windows\\system32&gt;pip3 &#8211;version p [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[521],"class_list":["post-2058","post","type-post","status-publish","format-standard","hentry","category-python","tag-pip"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2058"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2058\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}