{"id":131848,"date":"2020-07-05T14:58:01","date_gmt":"2020-07-05T06:58:01","guid":{"rendered":"http:\/\/4563.org\/?p=131848"},"modified":"2020-07-05T14:58:01","modified_gmt":"2020-07-05T06:58:01","slug":"python-%e4%b8%ad-requirements-txt-%e6%96%87%e4%bb%b6%e7%9a%84%e5%ae%89%e8%a3%85%e5%92%8c%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=131848","title":{"rendered":"python \u4e2d requirements.txt \u6587\u4ef6\u7684\u5b89\u88c5\u548c\u4f7f\u7528"},"content":{"rendered":"<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u8bf4\u660e\" title=\"\u8bf4\u660e\"><\/a>\u8bf4\u660e<\/h3>\n<p>\u5728 Python \u9879\u76ee\u4e2d requirements.txt\u6587\u4ef6\uff0c\u8bb0\u5f55\u4e86\u5f53\u524d\u7a0b\u5e8f\u6240\u6709\u4f9d\u8d56\u5305\u4ee5\u53ca\u5bf9\u5e94\u7684\u7248\u672c\u53f7\u3002\u5b83\u53ef\u4ee5\u4fdd\u8bc1\u9879\u76ee\u4f9d\u8d56\u5305\u7248\u672c\u7684\u786e\u5b9a\u6027, \u4e0d\u4f1a\u56e0\u4e3a\u4f9d\u8d56\u66f4\u65b0\u800c\u5bfc\u81f4\u5f02\u5e38\u4ea7\u751f.<\/p>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u751f\u6210requirements-txt\u6587\u4ef6\" title=\"\u751f\u6210requirements.txt\u6587\u4ef6\"><\/a>\u751f\u6210requirements.txt\u6587\u4ef6<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>pip freeze &gt; requirements.txt<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u5b89\u88c5requirements-txt\u4f9d\u8d56\" title=\"\u5b89\u88c5requirements.txt\u4f9d\u8d56\"><\/a>\u5b89\u88c5requirements.txt\u4f9d\u8d56<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>pip install -r requirements.txt<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u5305\" title=\"\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u5305\"><\/a>\u5217\u51fa\u5df2\u5b89\u88c5\u7684\u5305<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>pip freeze <span>or<\/span> pip list<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n<h3><a href=\"https:\/\/www.studytime.xin\/article\/#\u5347\u7ea7pip\" title=\"\u5347\u7ea7pip\"><\/a>\u5347\u7ea7pip<\/h3>\n<figure>\n<table>\n<tr>\n<td>\n<pre><span>1<\/span><br><\/pre>\n<\/td>\n<td>\n<pre><span>pip install -U pip<\/span><br><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf4\u660e \u5728 Python \u9879\u76ee\u4e2d 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\/131848"}],"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=131848"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/131848\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131848"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}