{"id":318134,"date":"2021-02-04T21:47:09","date_gmt":"2021-02-04T13:47:09","guid":{"rendered":"http:\/\/4563.org\/?p=318134"},"modified":"2021-02-04T21:47:09","modified_gmt":"2021-02-04T13:47:09","slug":"python-%e7%9a%84%e5%bc%80%e6%ba%90%e9%a1%b9%e7%9b%ae-%e7%8e%b0%e5%9c%a8-requirements-txt-%e8%b6%8a%e6%9d%a5%e8%b6%8a%e5%b0%91%e4%ba%86-%e5%a6%82%e4%bd%95%e6%90%ad%e5%bb%ba%e5%bc%80%e5%8f%91%e7%8e%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=318134","title":{"rendered":"Python \u7684\u5f00\u6e90\u9879\u76ee \u73b0\u5728 requirements.txt \u8d8a\u6765\u8d8a\u5c11\u4e86. \u5982\u4f55\u642d\u5efa\u5f00\u53d1\u73af\u5883?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python \u7684\u5f00\u6e90\u9879\u76ee \u73b0\u5728 requirements.txt \u8d8a\u6765\u8d8a\u5c11\u4e86. \u5982\u4f55\u642d\u5efa\u5f00\u53d1\u73af\u5883?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chaleaoch <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u4e3e\u4f8b <br \/>https:\/\/github.com\/agronholm\/apscheduler<\/p>\n<p>\u6211\u4e0d\u662f\u7528\u8fd9\u4e2a\u9879\u76ee, \u6211\u662f\u60f3\u770b\u8fd9\u4e2a\u9879\u76ee\u7684\u6e90\u7801,\u6587\u6863\u91cc\u4e5f\u6ca1\u6709\u5f00\u53d1\u8005\u6587\u6863. \u90fd\u662f\u7528\u6237\u624b\u518c.<\/p>\n<p>\u7136\u540e\u4e5f\u6ca1\u6709 requirements.txt<\/p>\n<p>\u4f55\u89e3?<\/p>\n<p>\u8c22\u8c22\u5927\u4f6c.      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4987343\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coolair <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u641e\u4e00\u4e2a\u5e72\u51c0\u7684\u865a\u62df\u73af\u5883\uff0cpip \u5b89\u88c5\u4e00\u4e0b\u8fd9\u4e2a\u5305\uff0c\u4e0d\u5c31\u4e00\u4e2a\u5b83\u7684\u4f9d\u8d56\u4e86\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987344\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coolair <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u5c31\u77e5\u9053\u5b83\u7684\u4f9d\u8d56\u4e86\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987345\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : my8100 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/github.com\/agronholm\/apscheduler\/blob\/master\/setup.cfg#L23                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987346\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : krixaar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u60f3\u60f3\uff0c\u4f5c\u4e3a\u4e00\u4e2a\u80fd\u5b89\u88c5\u7684\u5305\uff0c\u662f\u4e0d\u662f\u603b\u5f97\u6709\u4e2a\u6d41\u7a0b\u8ba9\u5b83\u53ef\u4ee5\u901a\u8fc7 pip \u88c5\u4f9d\u8d56\uff0c\u8fd9\u4e2a\u6d41\u7a0b\u662f\u4e0d\u662f\u5728 Python \u7684\u6587\u6863\u91cc\u63d0\u5230\u8fc7\uff0c\u4f60\u6709\u6ca1\u6709\u770b\u8fc7\uff1f\u63d0\u793a\uff1asetuptools                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987347\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chaleaoch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @krixaar \u8fd9\u4e2a\u6211\u5f53\u7136\u77e5\u9053\u5566 \u4f46\u662f\u4e0d\u76f4\u89c2\u554a&#8230;\u7c7b\u4f3c\u7684\u65b9\u6cd5\u5f88\u591a\u542f\u793a.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987348\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             requirements.txt \u8fc7\u65f6\u4e86\u5427\uff0c\u7528 pyproject.toml<br \/>\u76f8\u5173\u7684\u5de5\u5177\u6709 poetry \u3001pyflow \u7b49\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987349\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chaleaoch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jirajine \u662f\u7684. \u4f46\u662f \u5c31\u6211\u4e3e\u7684\u90a3\u4e2a\u4f8b\u5b50\u91cc, \u6709 pyproject.toml. \u4f46\u662f\u5e76\u6ca1\u6709 tool.poetry                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987350\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kkbblzq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u53ef\u4ee5\u9009\u62e9\u76f4\u63a5\u5b89\u88c5\u4e00\u904d\u5f53\u524d\u9879\u76ee pip install .                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987351\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : guog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u4f8b\u5b50\u662f\u56e0\u4e3a\u4f5c\u8005\u628a\u4ed6\u505a\u6210\u4e86\u4e00\u4e2a\u5305\uff0c\u76f4\u63a5 pip install \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987352\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : est <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             requirements.txt \u7f3a\u5f88\u591a\u529f\u80fd\u6bd4\u5982\u5982\u4f55\u533a\u5206\u751f\u4ea7\u73af\u5883\u4f9d\u8d56\u548c\u5f00\u53d1\u73af\u5883\u4f9d\u8d56                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4987353\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f4\u89c2\u8fd9\u4e2a\u8bcd\u2026\u2026\u672c\u6765 requirements \u4e5f\u4e0d\u662f\u7ed9\u4eba\u7c7b\u770b\u7684\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python \u7684\u5f00\u6e90\u9879\u76ee \u73b0\u5728 r&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\/318134"}],"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=318134"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/318134\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=318134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=318134"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=318134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}