{"id":2060,"date":"2023-04-01T21:30:31","date_gmt":"2023-04-01T13:30:31","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=2060"},"modified":"2023-04-07T06:04:48","modified_gmt":"2023-04-06T22:04:48","slug":"pip3-exception-no-module-named-pip-internal","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/04\/01\/pip3-exception-no-module-named-pip-internal\/","title":{"rendered":"pip3\u5f02\u5e38No module named &#8216;pip._internal&#8217;"},"content":{"rendered":"<p>pip\u5347\u7ea7\u540e\u5bfc\u81f4\u4e0d\u80fd\u4f7f\u7528\u539f\u6765\u7684pip\u547d\u4ee4\uff0c\u539f\u5148\u4f7f\u7528PyCharm\u5b89\u88c5pip\uff0c\u73b0\u4f7f\u7528<code>easy_install<\/code>\u5b89\u88c5\u6700\u65b0\u7248\uff0c\u5bfc\u81f4\u51b2\u7a81<\/p>\n<pre><code class=\"language-shell\">> pip3 -V\n...\nModuleNotFoundError: No module named &#039;pip._internal&#039;<\/code><\/pre>\n<p><!-- more --><\/p>\n<h3>\u5220\u9664\u65e7\u7248pip<\/h3>\n<p>\u5220\u9664\u6587\u4ef6\u5939\uff1a<\/p>\n<ul>\n<li>C:\\Program Files\\Python36\\Lib\\site-packages\\pip<\/li>\n<li>C:\\Program Files\\Python36\\Lib\\site-packages\\pip-9.0.3.dist-info<\/li>\n<\/ul>\n<h3>\u4f7f\u7528easy_install\u5b89\u88c5\u65b0\u7248pip<\/h3>\n<pre><code class=\"language-shell\">> cd C:\\Users\\yezhou\\Desktop\\setuptools-39.0.1\n> python3 setup.py install\n> cd C:\\Program Files\\Python36\\Scripts\n> easy_install pip<\/code><\/pre>\n<h3>ensurepip<\/h3>\n<p>\u67e5\u770b<code>easy_install pip<\/code>\u5b89\u88c5\u65e5\u5fd7\uff0c\u4e0b\u8f7d\u65b0\u7248whl\uff0c\u5982\uff1apip-10.0.0b2-py2.py3-none-any.whl<\/p>\n<pre><code>https:\/\/pypi.python.org\/packages\/97\/72\/1d514201e7d7fc7fff5aac3de9c7b892cd72fb4bf23fd983630df96f7412\/pip-10.0.0b2-py2.py3-none-any.whl#md5=2671150c78981971c1dfbd175a42139c<\/code><\/pre>\n<p>\u653e\u5230 C:\\Program Files\\Python36\\Lib\\ensurepip_bundled \u76ee\u5f55\u4e0b<\/p>\n<pre><code class=\"language-shell\">> python -m ensurepip\nRequirement already satisfied: setuptools in c:\\program files\\python36\\lib\\site-packages\nRequirement already satisfied: pip in c:\\program files\\python36\\lib\\site-packages\\pip-10.0.0b2-py3.6.egg<\/code><\/pre>\n<h3>\u9a8c\u8bc1<\/h3>\n<pre><code class=\"language-shell\">> pip3 -V\npip 10.0.0b2 from C:\\Program Files\\Python36\\lib\\site-packages\\pip-10.0.0b2-py3.6.egg\\pip (python 3.6)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>pip\u5347\u7ea7\u540e\u5bfc\u81f4\u4e0d\u80fd\u4f7f\u7528\u539f\u6765\u7684pip\u547d\u4ee4\uff0c\u539f\u5148\u4f7f\u7528PyCharm\u5b89\u88c5pip\uff0c\u73b0\u4f7f\u7528easy_install\u5b89\u88c5 [&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-2060","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\/2060","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=2060"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/2060\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}