{"id":237103,"date":"2020-12-31T14:06:59","date_gmt":"2020-12-31T06:06:59","guid":{"rendered":"http:\/\/4563.org\/?p=237103"},"modified":"2020-12-31T14:06:59","modified_gmt":"2020-12-31T06:06:59","slug":"pip-%e4%bb%8e-git-%e5%ae%89%e8%a3%85%e5%8c%85%e7%9a%84%e6%97%b6%e5%80%99%e6%97%a0%e6%b3%95%e5%ae%89%e8%a3%85-setup-%e4%b8%ad%e7%9a%84-install_requires-%e9%87%8c%e9%9d%a2%e7%9a%84%e4%be%9d%e8%b5%96","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=237103","title":{"rendered":"pip \u4ece git \u5b89\u88c5\u5305\u7684\u65f6\u5019\u65e0\u6cd5\u5b89\u88c5 setup \u4e2d\u7684 install_requires \u91cc\u9762\u7684\u4f9d\u8d56"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  pip \u4ece git \u5b89\u88c5\u5305\u7684\u65f6\u5019\u65e0\u6cd5\u5b89\u88c5 setup \u4e2d\u7684 install_requires \u91cc\u9762\u7684\u4f9d\u8d56               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : deplives <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u56e0\u4e3a\u516c\u53f8\u5185\u90e8\u9700\u6c42\uff0c\u9700\u8981\u5c06\u4e00\u4e2a\u5185\u90e8\u7684 python \u5305\u5206\u53d1\u7ed9\u4e0d\u540c\u7684\u4eba\u4f7f\u7528\uff0c\u76ee\u524d\u91c7\u7528\u7684\u662f\u5185\u7f51 git \u4e0a\u76f4\u63a5\u5b89\u88c5<\/p>\n<pre><code>pip3 install git+http:\/\/xxxx.git --upgrade <\/code><\/pre>\n<p>\u4f46\u662f\u51fa\u73b0\u4e86\u4e00\u4e2a\u95ee\u9898\uff0c\u5c31\u662f\u8fd9\u4e2a\u5305\u4f9d\u8d56\u5176\u4ed6\u7684\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5305\uff0c\u800c\u4e14\u6211\u4e5f\u628a\u8fd9\u4e9b\u7b2c\u4e09\u65b9\u5305\u5199\u5728\u4e86 setup \u4e2d\u7684 install_requires \u91cc\u9762\uff0c\u4f46\u662f\u5f53\u6211\u7528 pip git \u5b89\u88c5\u7684\u65f6\u5019\u8c8c\u4f3c\u8fd9\u4e9b\u7b2c\u4e09\u65b9\u5305\u4e5f\u4f1a\u9ed8\u8ba4\u4ece\u8fd9\u4e2a git \u4e0a\u9762\u5b89\u88c5\u3002\u800c\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25\uff0c\u6709\u6ca1\u6709\u4ec0\u4e48\u529e\u6cd5\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>1<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4766390\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sudoy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bd5\u8bd5\u4fee\u6539 setup .py \uff0c \u5c06 \u91cc\u9762\u7684 dependency_links \u4ee5 dependency-links.txt \u5f62\u5f0f\u5b89\u88c5\u4f9d\u8d56\u3002\u53c2\u8003\u8fd9\u4e2a\u5e16\u5b50\uff1a<br \/>https:\/\/stackoverflow.com\/questions\/36544700\/how-to-pip-install-a-package-that-has-git-dependencies                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>pip \u4ece git \u5b89\u88c5\u5305\u7684\u65f6\u5019\u65e0&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\/237103"}],"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=237103"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/237103\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237103"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}