{"id":204357,"date":"2025-05-29T09:45:58","date_gmt":"2025-05-29T01:45:58","guid":{"rendered":"https:\/\/server.hk\/cnblog\/204357\/"},"modified":"2025-05-29T09:45:58","modified_gmt":"2025-05-29T01:45:58","slug":"%e5%9c%a8-linux-%e7%b3%bb%e7%bb%9f%e4%b8%ad%ef%bc%8c%e5%a6%82%e4%bd%95%e9%87%8d%e6%96%b0%e7%bc%96%e8%af%91-python-3-%e4%bb%a5%e8%a7%a3%e5%86%b3%e4%be%9d%e8%b5%96%e9%97%ae%e9%a2%98%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/204357\/","title":{"rendered":"\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u5982\u4f55\u91cd\u65b0\u7f16\u8bd1 Python 3 \u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u5982\u4f55\u91cd\u65b0\u7f16\u8bd1 Python 3 \u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\uff1f<\/h1>\n<p>\u5c0f\u4f19\u4f34\u4eec\u6709\u6ca1\u6709\u89c9\u5f97\u5b66\u4e60\u5f88\u6709\u610f\u601d\uff1f\u6709\u610f\u601d\u5c31\u5bf9\u4e86\uff01\u4eca\u5929\u5c31\u7ed9\u5927\u5bb6\u5e26\u6765<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u5982\u4f55\u91cd\u65b0\u7f16\u8bd1 Python 3 \u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\uff1f\u300b<\/span>\uff0c\u4ee5\u4e0b\u5185\u5bb9\u5c06\u4f1a\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u82e5\u662f\u5728\u5b66\u4e60\u4e2d\u5bf9\u5176\u4e2d\u90e8\u5206\u77e5\u8bc6\u70b9\u6709\u7591\u95ee\uff0c\u6216\u8bb8\u770b\u4e86\u672c\u6587\u5c31\u80fd\u5e2e\u5230\u4f60\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241105\/17307914906729c8424ed25.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u91cd\u65b0\u7f16\u8bd1 python 3<\/strong><\/p>\n<p>\u5bf9\u4e8e python 3 \u521d\u5b66\u8005\u6765\u8bf4\uff0c\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u7f16\u8bd1 python 3 \u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u3002<strong>\u5728 linux \u7cfb\u7edf\u4e2d\uff0c\u5f53\u5df2\u5b89\u88c5 python 3 \u4f46\u6dfb\u52a0\u4e86\u5176\u4ed6\u4f9d\u8d56\u540e\uff0c\u91cd\u65b0\u7f16\u8bd1 python 3 \u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/strong><\/p>\n<ul>\n<li><strong>.\/configure<\/strong><\/li>\n<\/ul>\n<p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u8fd0\u884c .\/configure \u547d\u4ee4\uff0c\u5b83\u5c06\u914d\u7f6e python 3 \u7684\u7f16\u8bd1\u9009\u9879\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>.\/configure --prefix=\/usr\/python<\/pre>\n<p>\u5176\u4e2d\uff0c&#8211;prefix=\/usr\/python \u9009\u9879\u6307\u5b9a\u4e86 python 3 \u7684\u5b89\u88c5\u76ee\u5f55\u3002<\/p>\n<ul>\n<li><strong>make<\/strong><\/li>\n<\/ul>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u8fd0\u884c make \u547d\u4ee4\u7f16\u8bd1 python 3 \u6e90\u4ee3\u7801\u3002<\/p>\n<ul>\n<li><strong>make install<\/strong><\/li>\n<\/ul>\n<p>\u6700\u540e\uff0c\u8fd0\u884c make install \u547d\u4ee4\u5b89\u88c5\u5df2\u7f16\u8bd1\u7684 python 3\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u662f\u5426\u6709\u987a\u5229\u5e2e\u52a9\u4f60\u89e3\u51b3\u95ee\u9898\uff1f\u82e5\u662f\u80fd\u7ed9\u4f60\u5e26\u6765\u5b66\u4e60\u4e0a\u7684\u5e2e\u52a9\uff0c\u8bf7\u5927\u5bb6\u591a\u591a\u652f\u6301\uff01\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u4e5f\u53ef\u5173\u6ce8\u516c\u4f17\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u5982\u4f55\u91cd\u65b0&#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-204357","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204357","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=204357"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204357\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=204357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=204357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=204357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}