{"id":487,"date":"2025-03-18T16:06:42","date_gmt":"2025-03-18T16:06:42","guid":{"rendered":"https:\/\/linuxjk.cn\/?p=487"},"modified":"2025-03-18T16:22:58","modified_gmt":"2025-03-18T16:22:58","slug":"%e5%85%b3%e4%ba%8epython%e8%99%9a%e6%8b%9f%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/linuxjk.cn\/?p=487","title":{"rendered":"\u5173\u4e8epython\u865a\u62df\u73af\u5883"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"487\" class=\"elementor elementor-487\">\n\t\t\t\t<div class=\"elementor-element elementor-element-518413c e-flex e-con-boxed e-con e-parent\" data-id=\"518413c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0cfbcf6 elementor-widget elementor-widget-heading\" data-id=\"0cfbcf6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxjk.cn\/?p=487\/#python%E8%87%AA%E5%B8%A6venv%EF%BC%88%E4%B8%AA%E4%BA%BA%E6%9C%80%E5%B8%B8%E7%94%A8%EF%BC%89\" >python\u81ea\u5e26venv\uff08\u4e2a\u4eba\u6700\u5e38\u7528\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxjk.cn\/?p=487\/#virtualenv%EF%BC%88%E5%88%9B%E5%BB%BA%E5%A4%9A%E4%B8%AA%E7%8B%AC%E7%AB%8Bpython%E7%8E%AF%E5%A2%83%EF%BC%89\" >virtualenv\uff08\u521b\u5efa\u591a\u4e2a\u72ec\u7acbpython\u73af\u5883\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxjk.cn\/?p=487\/#Virtualenvwrapper%EF%BC%88virtualenv%E7%9A%84%E6%89%A9%E5%B1%95%E5%8C%85%EF%BC%89\" >Virtualenvwrapper\uff08virtualenv\u7684\u6269\u5c55\u5305\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxjk.cn\/?p=487\/#%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%EF%BC%9F\" >\u4e3a\u4ec0\u4e48\u9700\u8981\u865a\u62df\u73af\u5883\uff1f<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxjk.cn\/?p=487\/#1_%E8%A7%A3%E5%86%B3%E4%BE%9D%E8%B5%96%E7%89%88%E6%9C%AC%E5%86%B2%E7%AA%81\" >1. \u89e3\u51b3\u4f9d\u8d56\u7248\u672c\u51b2\u7a81<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxjk.cn\/?p=487\/#2_%E9%81%BF%E5%85%8D%E6%B1%A1%E6%9F%93%E7%B3%BB%E7%BB%9F%E7%8E%AF%E5%A2%83\" >2. \u907f\u514d\u6c61\u67d3\u7cfb\u7edf\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxjk.cn\/?p=487\/#3_%E6%8F%90%E5%8D%87%E5%AE%89%E5%85%A8%E6%80%A7\" >3. \u63d0\u5347\u5b89\u5168\u6027<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxjk.cn\/?p=487\/#4_%E6%94%AF%E6%8C%81%E5%A4%9A%E7%89%88%E6%9C%AC_Python\" >4. \u652f\u6301\u591a\u7248\u672c Python<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxjk.cn\/?p=487\/#5_%E4%BE%BF%E4%BA%8E%E5%8D%8F%E4%BD%9C%E4%B8%8E%E9%83%A8%E7%BD%B2\" >5. \u4fbf\u4e8e\u534f\u4f5c\u4e0e\u90e8\u7f72<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxjk.cn\/?p=487\/#%E4%BA%8C%E3%80%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E7%9A%84%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86\" >\u4e8c\u3001\u865a\u62df\u73af\u5883\u7684\u5de5\u4f5c\u539f\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxjk.cn\/?p=487\/#%E4%B8%89%E3%80%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E7%9A%84%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF\" >\u4e09\u3001\u865a\u62df\u73af\u5883\u7684\u4f7f\u7528\u573a\u666f<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxjk.cn\/?p=487\/#1_%E6%9C%AC%E5%9C%B0%E5%BC%80%E5%8F%91\" >1. \u672c\u5730\u5f00\u53d1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxjk.cn\/?p=487\/#2_%E7%94%9F%E4%BA%A7%E9%83%A8%E7%BD%B2\" >2. \u751f\u4ea7\u90e8\u7f72<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxjk.cn\/?p=487\/#3_%E5%A4%9A%E9%A1%B9%E7%9B%AE%E5%B9%B6%E8%A1%8C%E5%BC%80%E5%8F%91\" >3. \u591a\u9879\u76ee\u5e76\u884c\u5f00\u53d1<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxjk.cn\/?p=487\/#%E5%90%84%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E5%B7%A5%E5%85%B7%E7%89%B9%E7%82%B9%E5%8F%8A%E6%AF%94%E8%BE%83\" >\u5404\u865a\u62df\u73af\u5883\u5de5\u5177\u7279\u70b9\u53ca\u6bd4\u8f83<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxjk.cn\/?p=487\/#%E5%9B%9B%E3%80%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83_vs_%E5%85%B6%E4%BB%96%E5%B7%A5%E5%85%B7\" >\u56db\u3001\u865a\u62df\u73af\u5883 vs \u5176\u4ed6\u5de5\u5177<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxjk.cn\/?p=487\/#%E4%BA%94%E3%80%81%E5%AE%9E%E9%AA%8C%E7%A4%BA%E4%BE%8B%EF%BC%9A%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E5%AE%9E%E6%88%98\" >\u4e94\u3001\u5b9e\u9a8c\u793a\u4f8b\uff1a\u865a\u62df\u73af\u5883\u5b9e\u6218<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/linuxjk.cn\/?p=487\/#1_%E5%88%9B%E5%BB%BA%E5%B9%B6%E6%BF%80%E6%B4%BB%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83\" >1. \u521b\u5efa\u5e76\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/linuxjk.cn\/?p=487\/#2_%E5%AE%89%E8%A3%85%E4%BE%9D%E8%B5%96\" >2. \u5b89\u88c5\u4f9d\u8d56<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/linuxjk.cn\/?p=487\/#3_%E9%AA%8C%E8%AF%81%E9%9A%94%E7%A6%BB%E6%80%A7\" >3. \u9a8c\u8bc1\u9694\u79bb\u6027<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/linuxjk.cn\/?p=487\/#%E6%80%BB%E7%BB%93\" >\u603b\u7ed3<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"elementor-heading-title elementor-size-default\"><span class=\"ez-toc-section\" id=\"python%E8%87%AA%E5%B8%A6venv%EF%BC%88%E4%B8%AA%E4%BA%BA%E6%9C%80%E5%B8%B8%E7%94%A8%EF%BC%89\"><\/span>python\u81ea\u5e26venv\uff08\u4e2a\u4eba\u6700\u5e38\u7528\uff09<span class=\"ez-toc-section-end\"><\/span><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cfa587a elementor-widget elementor-widget-text-editor\" data-id=\"cfa587a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>python\u5185\u7f6evenv\uff1a<\/strong><br \/><strong>1.\u521b\u5efa<\/strong><br \/><strong>$ python3 -m venv &lt;\u73af\u5883\u540d\u79f0&gt;<\/strong><br \/><strong>2.\u6fc0\u6d3b\uff1a<\/strong><br \/><strong>$ source &lt;\u73af\u5883\u540d\u79f0&gt;\/bin\/activate<\/strong><br \/><strong>3.\u5173\u95ed\uff08\u9000\u51fa\uff09\u865a\u62df\u73af\u5883<\/strong><br \/><strong>$ deactivate<\/strong><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a337ab9 elementor-widget elementor-widget-heading\" data-id=\"a337ab9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><span class=\"ez-toc-section\" id=\"virtualenv%EF%BC%88%E5%88%9B%E5%BB%BA%E5%A4%9A%E4%B8%AA%E7%8B%AC%E7%AB%8Bpython%E7%8E%AF%E5%A2%83%EF%BC%89\"><\/span>virtualenv\uff08\u521b\u5efa\u591a\u4e2a\u72ec\u7acbpython\u73af\u5883\uff09<span class=\"ez-toc-section-end\"><\/span><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-50ac76e elementor-widget elementor-widget-text-editor\" data-id=\"50ac76e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>virtualenv\u7528\u4e8e\u521b\u5efa\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u591a\u4e2aPython\u76f8\u4e92\u72ec\u7acb\uff0c\u4e92\u4e0d\u5f71\u54cd\u3002<\/strong><br \/><strong>1.shell\u4e0b\u8fd0\u884c\u5b89\u88c5virtual-env<\/strong><br \/><strong>pip install python-virtualenv<\/strong><br \/><strong>2.\u4f7f\u7528\u683c\u5f0f\uff1a<\/strong><br \/><strong>virtualenv [\u865a\u62df\u73af\u5883\u540d\u79f0-\u4e5f\u662f\u76ee\u5f55\u540d\u79f0]<\/strong><br \/><strong>3.\u542f\u52a8\u73af\u5883\uff1a<\/strong><br \/><strong>cd ENV<\/strong><br \/><strong>source .\/bin\/activate<\/strong><br \/><strong>ENV\u4e3a\u865a\u62df\u73af\u5883\u540d\u79f0\uff0c\u63a5\u4e0b\u6765\u6240\u6709\u6a21\u5757\u90fd\u53ea\u4f1a\u5b89\u88c5\u5230\u8be5\u76ee\u5f55\u4e2d\u53bb\u3002<\/strong><br \/><strong>3.\u9000\u51fa\uff1a<\/strong><br \/><strong>deactivate<\/strong><br \/><strong>\u5982\u679c\u6ca1\u6709\u542f\u52a8\u865a\u62df\u73af\u5883\uff0c\u7cfb\u7edf\u4e5f\u5b89\u88c5\u4e86pip\u5de5\u5177\uff0c\u90a3\u4e48\u5957\u4ef6\u5c06\u88ab\u5b89\u88c5\u5728\u7cfb\u7edf\u73af\u5883\u4e2d\uff0c\u4e3a\u4e86\u907f\u514d\u53d1\u751f\u6b64\u4e8b\uff0c\u53ef\u4ee5\u5728~\/.bashrc\u6587\u4ef6\u4e2d\u52a0\u4e0a\uff1a<\/strong><\/p><p><strong>export PIP_REQUIRE_VIRTUALENV=true<\/strong><br \/><strong>\u6216\u8005\u8ba9\u5728\u6267\u884cpip\u7684\u65f6\u5019\u8ba9\u7cfb\u7edf\u81ea\u52a8\u5f00\u542f\u865a\u62df\u73af\u5883\uff1a<\/strong><br \/><strong>export PIP_RESPECT_VIRTUALENV=true<\/strong><\/p><p><strong>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u865a\u62df\u73af\u5883\u4f1a\u4f9d\u8d56\u7cfb\u7edf\u73af\u5883\u4e2d\u7684site packages\uff0c\u5982\u679c\u4e0d\u60f3\u4f9d\u8d56\u8fd9\u4e9bpackage\uff0c\u90a3\u4e48\u53ef\u4ee5\u52a0\u4e0a\u53c2\u6570 &#8211;no-site-packages\u5efa\u7acb\u865a\u62df\u73af\u5883\uff1a<\/strong><br \/><strong>virtualenv &#8211;no-site-packages [\u865a\u62df\u73af\u5883\u540d\u79f0]<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ece2047 elementor-widget elementor-widget-heading\" data-id=\"ece2047\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><span class=\"ez-toc-section\" id=\"Virtualenvwrapper%EF%BC%88virtualenv%E7%9A%84%E6%89%A9%E5%B1%95%E5%8C%85%EF%BC%89\"><\/span>Virtualenvwrapper\uff08virtualenv\u7684\u6269\u5c55\u5305\uff09<span class=\"ez-toc-section-end\"><\/span><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d5c387f elementor-widget elementor-widget-text-editor\" data-id=\"d5c387f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Virtaulenvwrapper\u662fvirtualenv\u7684\u6269\u5c55\u5305\uff0c\u7528\u4e8e\u66f4\u65b9\u4fbf\u7ba1\u7406\u865a\u62df\u73af\u5883\uff0c\u5b83\u53ef\u4ee5\u505a\uff1a<\/strong><\/p><p><strong>\u5c06\u6240\u6709\u865a\u62df\u73af\u5883\u6574\u5408\u5728\u4e00\u4e2a\u76ee\u5f55\u4e0b<\/strong><\/p><p><strong>\u7ba1\u7406\uff08\u65b0\u589e\uff0c\u5220\u9664\uff0c\u590d\u5236\uff09\u865a\u62df\u73af\u5883<\/strong><\/p><p><strong>\u5feb\u901f\u5207\u6362\u865a\u62df\u73af\u5883<\/strong><\/p><p><strong>\u5b89\u88c5\u65b9\u6cd5<\/strong><br \/><strong>1\u3001\u8fd0\u884c<\/strong><\/p><p><strong>pip install virtualenvwrapper<\/strong><br \/><strong>2\u3001\u521b\u5efa\u76ee\u5f55\u7528\u6765\u5b58\u653e\u865a\u62df\u73af\u5883<\/strong><\/p><p><strong>mkdir ~\/.virtualenvs<\/strong><br \/><strong>3\u3001\u5728.bashrc\u4e2d\u6dfb\u52a0<\/strong><\/p><p><strong>export WORKON_HOME=~\/.virtualenvs<\/strong><\/p><p><strong>source \/usr\/local\/bin\/virtualenvwrapper.sh<\/strong><br \/><strong>4\u3001\u8fd0\u884c\uff1a source ~\/.bashrc<\/strong><\/p><p><strong>\u6b64\u65f6virtualenvwrapper\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/strong><\/p><p><strong>\u547d\u4ee4\u5217\u8868<\/strong><br \/><strong>workon:\u5217\u51fa\u865a\u62df\u73af\u5883\u5217\u8868<\/strong><\/p><p><strong>lsvirtualenv:\u540c\u4e0a<\/strong><\/p><p><strong>mkvirtualenv :\u65b0\u5efa\u865a\u62df\u73af\u5883<\/strong><\/p><p><strong>workon [\u865a\u62df\u73af\u5883\u540d\u79f0]:\u5207\u6362\u865a\u62df\u73af\u5883<\/strong><\/p><p><strong>rmvirtualenv :\u5220\u9664\u865a\u62df\u73af\u5883<\/strong><\/p><p><strong>deactivate: \u79bb\u5f00\u865a\u62df\u73af\u5883<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f3a877e elementor-widget elementor-widget-text-editor\" data-id=\"f3a877e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/www.cnblogs.com\/defifind\/p\/11326434.html\">https:\/\/www.cnblogs.com\/defifind\/p\/11326434.html<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3053af9 elementor-widget elementor-widget-heading\" data-id=\"3053af9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><span class=\"ez-toc-section\" id=\"%E4%B8%BA%E4%BB%80%E4%B9%88%E9%9C%80%E8%A6%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%EF%BC%9F\"><\/span>\u4e3a\u4ec0\u4e48\u9700\u8981\u865a\u62df\u73af\u5883\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fe42703 elementor-widget elementor-widget-text-editor\" data-id=\"fe42703\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"dad65929\"><div class=\"f9bf7997 d7dc56a8 c05b5566\"><div class=\"ds-markdown ds-markdown--block\"><h4><span class=\"ez-toc-section\" id=\"1_%E8%A7%A3%E5%86%B3%E4%BE%9D%E8%B5%96%E7%89%88%E6%9C%AC%E5%86%B2%E7%AA%81\"><\/span><strong>1. \u89e3\u51b3\u4f9d\u8d56\u7248\u672c\u51b2\u7a81<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u95ee\u9898\u573a\u666f\uff1a<\/strong><ul><li><strong>\u9879\u76ee A \u9700\u8981\u00a0<code>Django 1.11<\/code>\uff0c\u9879\u76ee B \u9700\u8981\u00a0<code>Django 3.2<\/code>\u3002\u82e5\u5168\u5c40\u5b89\u88c5\uff0c\u4e24\u4e2a\u9879\u76ee\u65e0\u6cd5\u540c\u65f6\u8fd0\u884c\u3002<\/strong><\/li><li><strong>\u5305\u7248\u672c\u66f4\u65b0\u53ef\u80fd\u5bfc\u81f4\u65e7\u9879\u76ee\u5d29\u6e83\uff08\u5982\u00a0<code>numpy<\/code>\u00a0\u7684 API \u53d8\u52a8\uff09\u3002<\/strong><\/li><\/ul><\/li><li><strong>\u865a\u62df\u73af\u5883\u7684\u4f5c\u7528\uff1a<\/strong><br \/><strong>\u6bcf\u4e2a\u9879\u76ee\u62e5\u6709\u72ec\u7acb\u7684 Python \u73af\u5883\u548c\u4f9d\u8d56\u5e93\uff0c\u4e92\u4e0d\u5e72\u6270\u3002<\/strong><\/li><\/ul><h4><span class=\"ez-toc-section\" id=\"2_%E9%81%BF%E5%85%8D%E6%B1%A1%E6%9F%93%E7%B3%BB%E7%BB%9F%E7%8E%AF%E5%A2%83\"><\/span><strong>2. \u907f\u514d\u6c61\u67d3\u7cfb\u7edf\u73af\u5883<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u95ee\u9898\u573a\u666f\uff1a<\/strong><ul><li><strong>\u5728\u7cfb\u7edf\u5168\u5c40\u5b89\u88c5\u8fc7\u591a\u5305\u4f1a\u5bfc\u81f4\u00a0<code>pip list<\/code>\u00a0\u6df7\u4e71\uff0c\u96be\u4ee5\u7ba1\u7406\u3002<\/strong><\/li><li><strong>\u7cfb\u7edf\u5de5\u5177\u53ef\u80fd\u4f9d\u8d56\u7279\u5b9a Python \u5305\uff0c\u968f\u610f\u5347\u7ea7\u53ef\u80fd\u7834\u574f\u7cfb\u7edf\u529f\u80fd\u3002<\/strong><\/li><\/ul><\/li><li><strong>\u865a\u62df\u73af\u5883\u7684\u4f5c\u7528\uff1a<\/strong><br \/><strong>\u4f9d\u8d56\u4ec5\u5b89\u88c5\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\uff0c\u4e0d\u5f71\u54cd\u7cfb\u7edf Python \u73af\u5883\u3002<\/strong><\/li><\/ul><h4><span class=\"ez-toc-section\" id=\"3_%E6%8F%90%E5%8D%87%E5%AE%89%E5%85%A8%E6%80%A7\"><\/span><strong>3. \u63d0\u5347\u5b89\u5168\u6027<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u95ee\u9898\u573a\u666f\uff1a<\/strong><ul><li><strong>\u5168\u5c40\u5b89\u88c5\u9700\u8981\u00a0<code>sudo<\/code>\u00a0\u6743\u9650\uff0c\u5b58\u5728\u8bef\u64cd\u4f5c\u98ce\u9669\uff08\u5982\u8bef\u5220\u7cfb\u7edf\u5173\u952e\u5305\uff09\u3002<\/strong><\/li><\/ul><\/li><li><strong>\u865a\u62df\u73af\u5883\u7684\u4f5c\u7528\uff1a<\/strong><br \/><strong>\u65e0\u9700\u7ba1\u7406\u5458\u6743\u9650\u5373\u53ef\u5b89\u88c5\u5305\uff0c\u964d\u4f4e\u64cd\u4f5c\u98ce\u9669\u3002<\/strong><\/li><\/ul><h4><span class=\"ez-toc-section\" id=\"4_%E6%94%AF%E6%8C%81%E5%A4%9A%E7%89%88%E6%9C%AC_Python\"><\/span><strong>4. \u652f\u6301\u591a\u7248\u672c Python<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u95ee\u9898\u573a\u666f\uff1a<\/strong><ul><li><strong>\u9879\u76ee A \u9700 Python 3.6\uff0c\u9879\u76ee B \u9700 Python 3.10\u3002<\/strong><\/li><\/ul><\/li><li><strong>\u865a\u62df\u73af\u5883\u7684\u4f5c\u7528\uff1a<\/strong><br \/><strong>\u53ef\u4e3a\u6bcf\u4e2a\u9879\u76ee\u6307\u5b9a\u4e0d\u540c Python \u7248\u672c\uff08\u901a\u8fc7\u00a0<code>-p<\/code>\u00a0\u53c2\u6570\uff09\u3002<\/strong><\/li><\/ul><h4><span class=\"ez-toc-section\" id=\"5_%E4%BE%BF%E4%BA%8E%E5%8D%8F%E4%BD%9C%E4%B8%8E%E9%83%A8%E7%BD%B2\"><\/span><strong>5. \u4fbf\u4e8e\u534f\u4f5c\u4e0e\u90e8\u7f72<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u95ee\u9898\u573a\u666f\uff1a<\/strong><ul><li><strong>\u56e2\u961f\u534f\u4f5c\u6216\u90e8\u7f72\u5230\u670d\u52a1\u5668\u65f6\uff0c\u9700\u786e\u4fdd\u73af\u5883\u4e00\u81f4\u3002<\/strong><\/li><\/ul><\/li><li><strong>\u865a\u62df\u73af\u5883\u7684\u4f5c\u7528\uff1a<\/strong><br \/><strong>\u901a\u8fc7\u00a0<code>requirements.txt<\/code>\u00a0\u8bb0\u5f55\u4f9d\u8d56\uff0c\u4e00\u952e\u590d\u73b0\u73af\u5883\u3002<\/strong><\/li><\/ul><hr \/><h3><span class=\"ez-toc-section\" id=\"%E4%BA%8C%E3%80%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E7%9A%84%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86\"><\/span><strong>\u4e8c\u3001\u865a\u62df\u73af\u5883\u7684\u5de5\u4f5c\u539f\u7406<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3><p><strong>\u865a\u62df\u73af\u5883\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5b9e\u73b0\u73af\u5883\u9694\u79bb\uff1a<\/strong><\/p><ol start=\"1\"><li><strong>\u72ec\u7acb\u76ee\u5f55\u7ed3\u6784\uff1a<\/strong><ul><li><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u00a0<code>Python \u89e3\u91ca\u5668<\/code>\u3001<code>pip<\/code>\u00a0\u548c\u00a0<code>site-packages<\/code>\u00a0\u7684\u76ee\u5f55\uff08\u5982\u00a0<code>venv\/<\/code>\uff09\u3002<\/strong><\/li><li><strong>\u6240\u6709\u4f9d\u8d56\u5305\u5b89\u88c5\u5230\u00a0<code>venv\/lib\/pythonX.X\/site-packages<\/code>\uff0c\u4e0e\u5168\u5c40\u73af\u5883\u5206\u79bb\u3002<\/strong><\/li><\/ul><\/li><li><strong>\u4fee\u6539\u73af\u5883\u53d8\u91cf\uff1a<\/strong><ul><li><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c<code>PATH<\/code>\u00a0\u53d8\u91cf\u6307\u5411\u9879\u76ee\u5185\u7684\u00a0<code>venv\/bin<\/code>\uff0c\u4f18\u5148\u4f7f\u7528\u865a\u62df\u73af\u5883\u4e2d\u7684\u547d\u4ee4\u3002<\/strong><\/li><li><strong><code>Python<\/code>\u00a0\u89e3\u91ca\u5668\u548c\u00a0<code>pip<\/code>\u00a0\u9ed8\u8ba4\u6307\u5411\u865a\u62df\u73af\u5883\u4e2d\u7684\u7248\u672c\u3002<\/strong><\/li><\/ul><\/li><\/ol><hr \/><h3><span class=\"ez-toc-section\" id=\"%E4%B8%89%E3%80%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E7%9A%84%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF\"><\/span><strong>\u4e09\u3001\u865a\u62df\u73af\u5883\u7684\u4f7f\u7528\u573a\u666f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3><h4><span class=\"ez-toc-section\" id=\"1_%E6%9C%AC%E5%9C%B0%E5%BC%80%E5%8F%91\"><\/span><strong>1. \u672c\u5730\u5f00\u53d1<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u64cd\u4f5c\uff1a<\/strong><br \/><div class=\"md-code-block\"><div class=\"md-code-block-banner-wrap\"><div class=\"md-code-block-banner\">\u00a0<\/div><\/div><pre><strong><span class=\"token comment\"># \u521b\u5efa\u865a\u62df\u73af\u5883<\/span>\nvirtualenv venv\n<span class=\"token comment\"># \u6fc0\u6d3b\u73af\u5883<\/span>\n<span class=\"token builtin class-name\">source<\/span> venv\/bin\/activate\n<span class=\"token comment\"># \u5b89\u88c5\u4f9d\u8d56<\/span>\npip <span class=\"token function\">install<\/span> <span class=\"token assign-left variable\">Django<\/span><span class=\"token operator\">==<\/span><span class=\"token number\">1.11<\/span>.7<\/strong><\/pre><\/div><\/li><\/ul><h4><span class=\"ez-toc-section\" id=\"2_%E7%94%9F%E4%BA%A7%E9%83%A8%E7%BD%B2\"><\/span><strong>2. \u751f\u4ea7\u90e8\u7f72<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u64cd\u4f5c\uff1a<\/strong><br \/><div class=\"md-code-block\"><div class=\"md-code-block-banner-wrap\"><div class=\"md-code-block-banner\">\u00a0<\/div><\/div><pre><strong><span class=\"token comment\"># \u5bfc\u51fa\u4f9d\u8d56<\/span>\npip freeze <span class=\"token operator\">&gt;<\/span> requirements.txt\n<span class=\"token comment\"># \u5728\u670d\u52a1\u5668\u4e0a\u590d\u73b0\u73af\u5883<\/span>\nvirtualenv venv\n<span class=\"token builtin class-name\">source<\/span> venv\/bin\/activate\npip <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-r<\/span> requirements.txt<\/strong><\/pre><\/div><\/li><\/ul><h4><span class=\"ez-toc-section\" id=\"3_%E5%A4%9A%E9%A1%B9%E7%9B%AE%E5%B9%B6%E8%A1%8C%E5%BC%80%E5%8F%91\"><\/span><strong>3. \u591a\u9879\u76ee\u5e76\u884c\u5f00\u53d1<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><ul><li><strong>\u64cd\u4f5c\uff1a<\/strong><br \/><div class=\"md-code-block\"><div class=\"md-code-block-banner-wrap\"><div class=\"md-code-block-banner\">\u00a0<\/div><\/div><pre><strong><span class=\"token comment\"># \u9879\u76ee A \u4f7f\u7528 Python 3.6<\/span>\nvirtualenv <span class=\"token parameter variable\">-p<\/span> \/usr\/bin\/python3.6 venv_a\n<span class=\"token comment\"># \u9879\u76ee B \u4f7f\u7528 Python 3.10<\/span>\nvirtualenv <span class=\"token parameter variable\">-p<\/span> \/usr\/bin\/python3.10 venv_b<\/strong><\/pre><\/div><\/li><\/ul><hr \/><\/div><\/div><\/div><div class=\"e886deb9\"><div class=\"e214291b\">\u00a0<\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ab8a9e elementor-widget elementor-widget-heading\" data-id=\"3ab8a9e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><span class=\"ez-toc-section\" id=\"%E5%90%84%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E5%B7%A5%E5%85%B7%E7%89%B9%E7%82%B9%E5%8F%8A%E6%AF%94%E8%BE%83\"><\/span>\u5404\u865a\u62df\u73af\u5883\u5de5\u5177\u7279\u70b9\u53ca\u6bd4\u8f83<span class=\"ez-toc-section-end\"><\/span><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9a2454c elementor-widget elementor-widget-text-editor\" data-id=\"9a2454c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"dad65929\"><div class=\"f9bf7997 d7dc56a8 c05b5566\"><div class=\"ds-markdown ds-markdown--block\"><h3><span class=\"ez-toc-section\" id=\"%E5%9B%9B%E3%80%81%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83_vs_%E5%85%B6%E4%BB%96%E5%B7%A5%E5%85%B7\"><\/span><strong>\u56db\u3001\u865a\u62df\u73af\u5883 vs \u5176\u4ed6\u5de5\u5177<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3><table><thead><tr><th><strong>\u5de5\u5177<\/strong><\/th><th><strong>\u7279\u70b9<\/strong><\/th><th><strong>\u9002\u7528\u573a\u666f<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>virtualenv<\/strong><\/td><td><strong>\u7b2c\u4e09\u65b9\u5de5\u5177\uff0c\u517c\u5bb9 Python 2\/3\uff0c\u529f\u80fd\u7075\u6d3b<\/strong><\/td><td><strong>\u9700\u8981\u517c\u5bb9\u65e7\u7248\u672c Python \u7684\u9879\u76ee<\/strong><\/td><\/tr><tr><td><strong>venv<\/strong><\/td><td><strong>Python 3 \u5185\u7f6e\u6a21\u5757\uff0c\u529f\u80fd\u57fa\u7840<\/strong><\/td><td><strong>Python 3 \u7eaf\u65b0\u9879\u76ee<\/strong><\/td><\/tr><tr><td><strong>pipenv<\/strong><\/td><td><strong>\u96c6\u6210\u4f9d\u8d56\u7ba1\u7406\u4e0e\u865a\u62df\u73af\u5883\uff0c\u81ea\u52a8\u751f\u6210\u00a0<code>Pipfile<\/code><\/strong><\/td><td><strong>\u9700\u8981\u4f9d\u8d56\u9501\u5b9a\u7684\u9879\u76ee<\/strong><\/td><\/tr><tr><td><strong>conda<\/strong><\/td><td><strong>\u652f\u6301\u8de8\u8bed\u8a00\u73af\u5883\u7ba1\u7406\uff0c\u9002\u5408\u79d1\u5b66\u8ba1\u7b97<\/strong><\/td><td><strong>\u6570\u636e\u79d1\u5b66\u9879\u76ee<\/strong><\/td><\/tr><tr><td><strong>Docker<\/strong><\/td><td><strong>\u5bb9\u5668\u7ea7\u9694\u79bb\uff0c\u5b8c\u5168\u72ec\u7acb\u7684\u73af\u5883<\/strong><\/td><td><strong>\u590d\u6742\u4f9d\u8d56\u6216\u8de8\u5e73\u53f0\u90e8\u7f72<\/strong><\/td><\/tr><\/tbody><\/table><hr \/><h3><span class=\"ez-toc-section\" id=\"%E4%BA%94%E3%80%81%E5%AE%9E%E9%AA%8C%E7%A4%BA%E4%BE%8B%EF%BC%9A%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83%E5%AE%9E%E6%88%98\"><\/span><strong>\u4e94\u3001\u5b9e\u9a8c\u793a\u4f8b\uff1a\u865a\u62df\u73af\u5883\u5b9e\u6218<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3><h4><span class=\"ez-toc-section\" id=\"1_%E5%88%9B%E5%BB%BA%E5%B9%B6%E6%BF%80%E6%B4%BB%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83\"><\/span><strong>1. \u521b\u5efa\u5e76\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><div class=\"md-code-block\"><pre><strong><span class=\"token comment\"># \u521b\u5efa<\/span>\nvirtualenv myenv\n<span class=\"token comment\"># \u6fc0\u6d3b\uff08Linux\/macOS\uff09<\/span>\n<span class=\"token builtin class-name\">source<\/span> myenv\/bin\/activate\n<span class=\"token comment\"># \u6fc0\u6d3b\uff08Windows\uff09<\/span>\nmyenv<span class=\"token punctuation\">\\<\/span>Scripts<span class=\"token punctuation\">\\<\/span>activate<\/strong><\/pre><\/div><h4><span class=\"ez-toc-section\" id=\"2_%E5%AE%89%E8%A3%85%E4%BE%9D%E8%B5%96\"><\/span><strong>2. \u5b89\u88c5\u4f9d\u8d56<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><div class=\"md-code-block\"><pre><strong>pip <span class=\"token function\">install<\/span> <span class=\"token assign-left variable\">django<\/span><span class=\"token operator\">==<\/span><span class=\"token number\">1.11<\/span>.7<\/strong><\/pre><\/div><h4><span class=\"ez-toc-section\" id=\"3_%E9%AA%8C%E8%AF%81%E9%9A%94%E7%A6%BB%E6%80%A7\"><\/span><strong>3. \u9a8c\u8bc1\u9694\u79bb\u6027<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4><div class=\"md-code-block\"><pre><strong><span class=\"token comment\"># \u67e5\u770b\u5f53\u524d\u73af\u5883\u5b89\u88c5\u7684\u5305<\/span>\npip list\n<span class=\"token comment\"># \u9000\u51fa\u865a\u62df\u73af\u5883<\/span>\ndeactivate\n<span class=\"token comment\"># \u518d\u6b21\u67e5\u770b\uff08\u5168\u5c40\u73af\u5883\uff09<\/span>\npip list<\/strong><\/pre><\/div><hr \/><h3><span class=\"ez-toc-section\" id=\"%E6%80%BB%E7%BB%93\"><\/span><strong>\u603b\u7ed3<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3><p><strong>\u865a\u62df\u73af\u5883\u662f Python \u5f00\u53d1\u7684\u57fa\u77f3\uff0c\u901a\u8fc7\u9694\u79bb\u4f9d\u8d56\u73af\u5883\uff0c\u89e3\u51b3\u4e86\u7248\u672c\u51b2\u7a81\u3001\u6743\u9650\u98ce\u9669\u548c\u534f\u4f5c\u4e00\u81f4\u6027\u7b49\u95ee\u9898\u3002\u65e0\u8bba\u662f\u5c0f\u578b\u811a\u672c\u8fd8\u662f\u5927\u578b\u9879\u76ee\uff0c\u90fd\u5e94\u59cb\u7ec8\u4f7f\u7528\u865a\u62df\u73af\u5883\uff01<\/strong><\/p><\/div><\/div><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>python\u81ea\u5e26venv\uff08\u4e2a\u4eba\u6700\u5e38\u7528\uff09 python\u5185\u7f6evenv\uff1a1.\u521b\u5efa$ python3 -m venv  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[15],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-vxhs888p","tag-check_error"],"_links":{"self":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts\/487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=487"}],"version-history":[{"count":4,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=\/wp\/v2\/posts\/487\/revisions\/492"}],"wp:attachment":[{"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxjk.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}