{"id":204132,"date":"2025-05-29T10:36:03","date_gmt":"2025-05-29T02:36:03","guid":{"rendered":"https:\/\/server.hk\/cnblog\/204132\/"},"modified":"2025-05-29T10:36:03","modified_gmt":"2025-05-29T02:36:03","slug":"%e5%a6%82%e4%bd%95%e8%ae%a9-pip-%e5%ae%89%e8%a3%85%e7%9a%84-python-%e8%84%9a%e6%9c%ac%e5%9c%a8-bin-%e7%9b%ae%e5%bd%95%e4%b8%8b%e7%94%9f%e6%88%90%e5%8f%af%e6%89%a7%e8%a1%8c%e6%96%87%e4%bb%b6%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/204132\/","title":{"rendered":"\u5982\u4f55\u8ba9 Pip \u5b89\u88c5\u7684 Python \u811a\u672c\u5728 Bin \u76ee\u5f55\u4e0b\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u8ba9 Pip \u5b89\u88c5\u7684 Python \u811a\u672c\u5728 Bin \u76ee\u5f55\u4e0b\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f <\/h1>\n<p>IT\u884c\u4e1a\u76f8\u5bf9\u4e8e\u4e00\u822c\u4f20\u7edf\u884c\u4e1a\uff0c\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u66f4\u5feb\uff0c\u4e00\u65e6\u505c\u6b62\u4e86\u5b66\u4e60\uff0c\u5f88\u5feb\u5c31\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u6240\u4ee5\u6211\u4eec\u9700\u8981\u8e0f\u8e0f\u5b9e\u5b9e\u7684\u4e0d\u65ad\u5b66\u4e60\uff0c\u7cbe\u8fdb\u81ea\u5df1\u7684\u6280\u672f\uff0c\u5c24\u5176\u662f\u521d\u5b66\u8005\u3002\u4eca\u5929\u7ed9\u5927\u5bb6\u6574\u7406\u4e86\u300a\u5982\u4f55\u8ba9 Pip \u5b89\u88c5\u7684 Python \u811a\u672c\u5728 Bin \u76ee\u5f55\u4e0b\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f \u300b\uff0c\u804a\u804a\uff0c\u6211\u4eec\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241029\/173018595767208ae56656e.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u5982\u4f55\u8ba9 Pip \u5b89\u88c5\u7684 Python \u811a\u672c\u5728 Bin \u76ee\u5f55\u4e0b\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong><\/p>\n<p>Python \u7528\u6237\u7ecf\u5e38\u9047\u5230\u8fd9\u6837\u7684\u95ee\u9898\uff1a\u7531 Pip \u5b89\u88c5\u7684\u5e93\u4f1a\u5728\u5f53\u524d Python \u73af\u5883\u7684 Bin \u76ee\u5f55\u4e0b\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u4f46\u5bf9\u4e8e\u53d1\u5e03\u5728 Pypi \u4e0a\u7684\u811a\u672c\uff0c\u8be5\u811a\u672c\u5982\u4f55\u5728\u901a\u8fc7 Pip \u5b89\u88c5\u540e\u4e5f\u5728 Bin \u76ee\u5f55\u4e0b\u521b\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u5462\uff1f<\/p>\n<p><strong>\u7b54\u6848\uff1a<\/strong><\/p>\n<p>\u8981\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u9700\u8981\u5728\u6253\u5305\u5de5\u5177\u7684\u914d\u7f6e\u4e2d\uff0c\u4f7f\u7528\u4ee5\u4e0b\u53c2\u6570\uff1a<\/p>\n<ul>\n<li><strong>entry_points<\/strong>\uff1a\u6307\u5b9a\u8981\u751f\u6210\u7684\u547d\u4ee4\u540d\u79f0\u548c\u76f8\u5e94\u7684 Python \u6a21\u5757\u540d\u79f0\u3002<\/li>\n<li><strong>console_scripts<\/strong>\uff1a\u6307\u5b9a\u5728 Bin \u76ee\u5f55\u4e2d\u751f\u6210\u7684\u547d\u4ee4\u540d\u79f0\u548c\u76f8\u5e94\u7684 Python \u6a21\u5757\u540d\u79f0\u3002<\/li>\n<\/ul>\n<p><strong>\u6587\u6863\u53c2\u8003\uff1a<\/strong><\/p>\n<p>\u6709\u5173\u8be6\u7ec6\u8bf4\u660e\uff0c\u8bf7\u53c2\u9605 Setuptools \u6587\u6863\uff1ahttps:\/\/setuptools.pypa.io\/en\/&#8230;<\/p>\n<p>\u672c\u7bc7\u5173\u4e8e\u300a\u5982\u4f55\u8ba9 Pip \u5b89\u88c5\u7684 Python \u811a\u672c\u5728 Bin \u76ee\u5f55\u4e0b\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f \u300b\u7684\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\u5566\uff0c\u4f46\u662f\u5b66\u65e0\u6b62\u5883\uff0c\u60f3\u8981\u4e86\u89e3\u5b66\u4e60\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u5173\u6ce8\u516c\u4f17\u53f7\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u8ba9 Pip \u5b89\u88c5\u7684 Pyth&#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-204132","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204132","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=204132"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204132\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=204132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=204132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=204132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}