{"id":204638,"date":"2025-05-29T11:06:06","date_gmt":"2025-05-29T03:06:06","guid":{"rendered":"https:\/\/server.hk\/cnblog\/204638\/"},"modified":"2025-05-29T11:06:06","modified_gmt":"2025-05-29T03:06:06","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-linux-%e7%b3%bb%e7%bb%9f%e4%b8%8a%e9%87%8d%e6%96%b0%e7%bc%96%e8%af%91-python-3%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/204638\/","title":{"rendered":"\u5982\u4f55\u5728 Linux \u7cfb\u7edf\u4e0a\u91cd\u65b0\u7f16\u8bd1 Python 3\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u5728 Linux \u7cfb\u7edf\u4e0a\u91cd\u65b0\u7f16\u8bd1 Python 3\uff1f<\/h1>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241112\/17313836666732d172c2ccf.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u91cd\u65b0\u7f16\u8bd1 Python 3<\/strong><\/p>\n<p>\u5bf9\u4e8e Python 3 \u65b0\u624b\u800c\u8a00\uff0c\u5728 Linux \u7cfb\u7edf\u5df2\u7ecf\u5b89\u88c5\u4e86 Python 3 \u4e4b\u540e\uff0c\u5982\u679c\u9700\u8981\u91cd\u65b0\u7f16\u8bd1 Python 3 \u4ee5\u5b89\u88c5\u5176\u4ed6\u4f9d\u8d56\u9879\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li><strong>\u4e0b\u8f7d Python 3 \u6e90\u7801\uff1a<\/strong>\u8bbf\u95ee Python \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d Python 3 \u6e90\u7801\u5305\u3002<\/li>\n<li><strong>\u89e3\u538b\u6e90\u7801\uff1a<\/strong>\u5c06\u4e0b\u8f7d\u7684\u6e90\u7801\u5305\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55\u3002<\/li>\n<li><strong>\u914d\u7f6e\u7f16\u8bd1\u9009\u9879\uff1a<\/strong>\u8fdb\u5165\u89e3\u538b\u540e\u7684\u6e90\u7801\u76ee\u5f55\uff0c\u8fd0\u884c .\/configure &#8211;prefix=\/usr\/python \u547d\u4ee4\u3002\u6b64\u547d\u4ee4\u6307\u5b9a\u4e86 Python \u5b89\u88c5\u8def\u5f84\u3002<\/li>\n<li><strong>\u7f16\u8bd1\uff1a<\/strong>\u8fd0\u884c make \u547d\u4ee4\u7f16\u8bd1\u6e90\u7801\u3002<\/li>\n<li><strong>\u5b89\u88c5\uff1a<\/strong>\u8fd0\u884c make install \u547d\u4ee4\u5b89\u88c5 Python\u3002<\/li>\n<\/ol>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e\uff0c\u5373\u53ef\u91cd\u65b0\u7f16\u8bd1 Python 3\u3002\u6ce8\u610f\uff0cmake \u548c make install \u547d\u4ee4\u53ef\u80fd\u9700\u8981 root \u6743\u9650\u3002<\/p>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300a\u5982\u4f55\u5728 Linux \u7cfb\u7edf\u4e0a\u91cd\u65b0\u7f16\u8bd1 Python 3\uff1f\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728 Linux \u7cfb\u7edf\u4e0a\u91cd\u65b0\u7f16&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-204638","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=204638"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204638\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=204638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=204638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=204638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}