{"id":149225,"date":"2020-08-20T02:50:49","date_gmt":"2020-08-19T18:50:49","guid":{"rendered":"http:\/\/4563.org\/?p=149225"},"modified":"2020-08-20T02:50:49","modified_gmt":"2020-08-19T18:50:49","slug":"%e7%9b%b4%e6%8e%a5%e5%9c%a8-site-packages-%e9%87%8c%e9%9d%a2%e4%bf%ae%e6%94%b9%e5%ba%93%e5%8f%af%e4%bb%a5%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=149225","title":{"rendered":"\u76f4\u63a5\u5728 site-packages \u91cc\u9762\u4fee\u6539\u5e93\u53ef\u4ee5\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u76f4\u63a5\u5728 site-packages \u91cc\u9762\u4fee\u6539\u5e93\u53ef\u4ee5\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sudoy <\/span>  <span><i><\/i> 11<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u521a\u5b89\u88c5\u4e86\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u7136\u540e\u53d1\u73b0\u8fd9\u4e2a\u5e93\u6ca1\u4eba\u7ef4\u62a4\uff0c\u91cc\u9762\u6709\u7684\u5730\u65b9\u5df2\u7ecf\u8fc7\u65f6\u4e86\uff0c\u4e8e\u662f\u6211\u76f4\u63a5\u5c31\u5728\u672c\u5730 python \u76ee\u5f55\u4e0b\u9762\u7684 site-packages \u627e\u5230\u8fd9\u4e2a\u5e93\uff0c\u7136\u540e\u4fee\u6539\u66f4\u65b0\u3002\u8bf7\u95ee\u8fd9\u79cd\u64cd\u4f5c\u4f1a\u6709\u4ec0\u4e48\u526f\u4f5c\u7528\u5417\uff1f\u8c22\u8c22\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3110648\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : j0hnj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u79cd\u60c5\u51b5\u63a8\u8350\u76f4\u63a5\u5185\u7f6e\u5e93\u7684\u4ee3\u7801\uff08 vendor \uff09\uff0c\u76f4\u63a5\u6539 site-packages \u6ca1\u4ec0\u4e48\u526f\u4f5c\u7528\uff0c\u53ea\u662f\u6362\u4e2a\u73af\u5883\u5c31\u53c8\u5f97\u6539                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110649\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eastlakes <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9664\u975e\u4f60\u5f97\u9879\u76ee\u5c31\u4f60\u4e00\u4e2a\u4eba\u5f00\u53d1\u5427<br \/>\u6ca1\u4eba\u7ef4\u62a4\u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u62f7\u8d1d\u51fa site-packages \u653e\u8fdb\u9879\u76ee\u76ee\u5f55\uff0c\u4f5c\u4e3a\u4f60\u9879\u76ee\u81ea\u5df1\u7684\u5e93\uff0c\u81ea\u5df1\u7ef4\u62a4\u548c\u4fee\u6539                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110650\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : awanabe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u62f7\u8fdb\u81ea\u5df1\u7684 workdir&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110651\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sudoy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @j0hnj @eastlakes @awanabe \u8c22\u8c22\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110652\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sudoy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5728 clone \u4e0b\u6765\u7684\u5e93\u91cc\u9762\u4fee\u6539\uff0c\u7136\u540e python setup.py install\uff0c \u53d1\u73b0\u6700\u540e\u5b89\u88c5\u597d\u7684\u5e93\u662f\u4ee5.egg \u6587\u4ef6\u683c\u5f0f\u8eba\u5728 site-packages \u91cc\u9762\u3002\u76f8\u6bd4\u7528 pip install \u5b89\u88c5\u7684\u5e93\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4f3c\u4e4e\u52a0\u8f7d\u8981\u6162\u5f88\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110653\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : weyou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e00\u822c\u8fd9\u6837\u505a, \u5148\u5c06\u5e93 clone \u4e0b\u6765, \u7136\u540e python setup.py develop, \u8fd9\u4e2a\u5e93\u4f1a\u4ee5\u94fe\u63a5\u7684\u5f62\u5f0f\u5b89\u88c5\u5230 python \u7684 site-packages \u91cc, \u5728 clone \u7684\u5730\u65b9\u4fee\u6539\u5e93, \u53ef\u4ee5\u76f4\u63a5\u53cd\u6620\u5230 site-packages \u91cc. \u5982\u679c\u9700\u8981\u5b89\u88c5\u5230\u591a\u4e2a Python \u73af\u5883, \u53ef\u4ee5\u5728\u6bcf\u4e2a\u73af\u5883\u6267\u884c\u4e00\u6b21 python setup.py develop. \u4ee5\u540e\u5bf9\u5e93\u505a\u7684\u4efb\u4f55\u4fee\u6539\u90fd\u4f1a\u76f4\u63a5\u53cd\u6620\u5230\u6240\u6709\u7684 python \u73af\u5883\u4e2d, \u4e0d\u9700\u8981\u518d\u6b21\u5b89\u88c5\u6216\u8005\u62f7\u8d1d.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110654\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sudoy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @weyou \u6da8\u59ff\u52bf\u4e86 :thumb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110655\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : frostming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. vendor, \u76f4\u63a5\u62f7\u8fdb\u9879\u76ee\u76ee\u5f55\u91cc\u9762\uff0c\u4e0d\u7528 install\uff0c\u901a\u8fc7 \u9879\u76ee.vendor.\u5305\u540d \u5f15\u7528<br \/>2. Fork \u4e00\u4e2a\u4ed3\u5e93\u51fa\u6765\u4fee\u6539\uff0c\u4f9d\u8d56\u5b89\u88c5\u7684\u65f6\u5019\u6539\u6210 pip install git+&lt;github \u5730\u5740&gt;@master#egg=&lt;\u5305\u540d&gt;\u3002\u4e5f\u53ef\u4ee5 build \u4e00\u4e2a wheel \u6216\u8005 tar.gz \u7136\u540e\u7528\u8fd9\u4e2a\u5305\u7684 URL \u5b89\u88c5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3110656\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sudoy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @frostming \u6211\u76ee\u524d\u7528\u7684\u662f\u7b2c\u4e8c\u79cd\u65b9\u6cd5\uff0cfork \u4e00\u4efd\u5230\u81ea\u5df1\u7684\u4ed3\u5e93\uff0c\u7136\u540e pip install git+&lt;github \u5730\u5740&gt;@master#egg=&lt;\u5305\u540d&gt; \u8fd9\u4e2a\u65b9\u6cd5\u4e0d\u4ec5\u53ef\u4ee5\u9009\u62e9 master \u8fd8\u53ef\u4ee5\u9009\u62e9\u5176\u4ed6\u5206\u652f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u76f4\u63a5\u5728 site-packages&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149225"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=149225"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149225\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149225"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}