{"id":205183,"date":"2025-05-29T15:49:28","date_gmt":"2025-05-29T07:49:28","guid":{"rendered":"https:\/\/server.hk\/cnblog\/205183\/"},"modified":"2025-05-29T15:49:28","modified_gmt":"2025-05-29T07:49:28","slug":"python-pip-%e5%ae%89%e8%a3%85%e5%a4%b1%e8%b4%a5%ef%bc%8c%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/205183\/","title":{"rendered":"Python Pip \u5b89\u88c5\u5931\u8d25\uff0c\u5982\u4f55\u89e3\u51b3\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>Python Pip \u5b89\u88c5\u5931\u8d25\uff0c\u5982\u4f55\u89e3\u51b3\uff1f <\/h1>\n<p>\u672c\u7bc7\u6587\u7ae0\u5411\u5927\u5bb6\u4ecb\u7ecd\u300aPython Pip \u5b89\u88c5\u5931\u8d25\uff0c\u5982\u4f55\u89e3\u51b3\uff1f \u300b\uff0c\u4e3b\u8981\u5305\u62ec\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241125\/17325308276744528b85c44.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>python pip \u5b89\u88c5\u5931\u8d25\u7684\u5e38\u89c1\u539f\u56e0<\/strong><\/p>\n<p>\u60a8\u63d0\u5230\u7684 python pip \u5b89\u88c5\u5931\u8d25\u95ee\u9898\uff0c\u901a\u5e38\u662f\u7531\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u4e0d\u5f53\u5bfc\u81f4\u7684\u3002\u5728 windows \u7cfb\u7edf\u4e2d\uff0c\u9700\u8981\u5c06 pip \u7684\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u6dfb\u52a0\u5230 path \u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u624d\u80fd\u5728\u547d\u4ee4\u884c\u4e2d\u6b63\u5e38\u4f7f\u7528 pip\u3002<\/p>\n<p>\u5177\u4f53\u6765\u8bf4\uff0c\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u68c0\u67e5\u73af\u5883\u53d8\u91cf<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d &gt; \u201c\u7cfb\u7edf\u548c\u5b89\u5168\u201d &gt; \u201c\u7cfb\u7edf\u201d &gt; \u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u5217\u8868\u4e2d\uff0c\u627e\u5230\u5e76\u53cc\u51fb\u201cpath\u201d\u53d8\u91cf\u3002<\/li>\n<li>\u5728\u201c\u53d8\u91cf\u503c\u201d\u6587\u672c\u6846\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u8def\u5f84\uff08\u5047\u8bbe python \u5b89\u88c5\u5728 c:python \u76ee\u5f55\u4e0b\uff09\uff1a<\/li>\n<\/ul>\n<pre>c:\\python\\scripts;c:\\python<\/pre>\n<\/li>\n<li>\n<p><strong>\u66f4\u65b0 pip<\/strong><\/p>\n<ul>\n<li>\u5b89\u88c5\u6700\u65b0\u7248\u7684 pip\uff1a<\/li>\n<\/ul>\n<pre>python -m pip install --upgrade pip<\/pre>\n<\/li>\n<li>\n<p><strong>pycharm \u4e2d\u5b89\u88c5<\/strong><\/p>\n<ul>\n<li>\u5728 pycharm \u4e2d\uff0c\u6253\u5f00\u201csettings\/preferences\u201d &gt; \u201cproject interpreter\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c+\u201d\u6309\u94ae\uff0c\u7136\u540e\u9009\u62e9\u201cinstall package\u201d\u3002<\/li>\n<li>\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u8981\u5b89\u88c5\u7684\u5305\u7684\u540d\u79f0\uff0c\u7136\u540e\u70b9\u51fb\u201cinstall package\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u8c03\u6574\u73af\u5883\u53d8\u91cf\u5e76\u66f4\u65b0 pip \u540e\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u518d\u6b21\u4f7f\u7528 pip \u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>\u6587\u4e2d\u5173\u4e8e\u7684\u77e5\u8bc6\u4ecb\u7ecd\uff0c\u5e0c\u671b\u5bf9\u4f60\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\uff01\u82e5\u662f\u53d7\u76ca\u532a\u6d45\uff0c\u90a3\u5c31\u52a8\u52a8\u9f20\u6807\u6536\u85cf\u8fd9\u7bc7\u300aPython Pip \u5b89\u88c5\u5931\u8d25\uff0c\u5982\u4f55\u89e3\u51b3\uff1f \u300b\u6587\u7ae0\u5427\uff0c\u4e5f\u53ef\u5173\u6ce8\u516c\u4f17\u53f7\u4e86\u89e3\u76f8\u5173\u6280\u672f\u6587\u7ae0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python Pip \u5b89\u88c5\u5931\u8d25\uff0c&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-205183","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=205183"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205183\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=205183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=205183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=205183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}