{"id":1128,"date":"2022-07-26T14:27:55","date_gmt":"2022-07-26T06:27:55","guid":{"rendered":"https:\/\/blog.5danyuan.com\/?p=1128"},"modified":"2022-07-26T14:27:55","modified_gmt":"2022-07-26T06:27:55","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85-python","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=1128","title":{"rendered":"\u6811\u8393\u6d3e\u7f16\u8bd1\u5b89\u88c5 python"},"content":{"rendered":"\n<p>\u7531\u4e8e\u6211\u7684 pi \u91cc\u7684 python \u7248\u672c\u8fd8\u662f 3.5\uff0c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u4f7f\u7528\uff0c\u4f46\u662f arm \u67b6\u6784\u53c8\u6ca1\u6709\u73b0\u6210\u7684\u6e90\uff0c\u53ea\u597d\u672c\u5730\u7f16\u8bd1\u5b89\u88c5\u3002<\/p>\n\n\n\n<p>\u5148\u5b89\u88c5\u57fa\u7840\u7684\u7f16\u8bd1\u5de5\u5177<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install -y make build-essential libssl-dev zlib1g-dev   \r\nsudo apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \r\nsudo apt-get install -y libncurses5-dev  libncursesw5-dev xz-utils tk-dev<\/code><\/pre>\n\n\n\n<p>\u5230 python \u7684\u5b98\u65b9\u5e93\u91cc\u53d6\u4e0b\u8f7d\u6e90\u7801\uff0c\u4f8b\u5982\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/www.python.org\/ftp\/python\/3.9.13\/Python-3.9.13.tgz\">https:\/\/www.python.org\/ftp\/python\/3.9.13\/Python-3.9.13.tgz<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\r\n \r\ntar zxvf Python-3.9.13.tgz\r\ncd Python-3.9.13\r\n \r\nsudo .\/configure &amp;&amp; sudo make -j4 &amp;&amp; sudo make install<\/code><\/pre>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u89e3\u538b\u7f29\u65f6\uff0c\u53ef\u80fd\u4f1a\u62a5\u9519\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u79fb\u9664 z \u53c2\u6570\uff0c\u6539\u7528 xvf \u6765\u89e3\u538b\u7f29\u3002\u53cd\u6b63\u8863\u670d\u81ea\u5df1\u6d17\u662f\u653e\u5f03\u4e86\uff0c\u76f4\u63a5\u5728 windows \u5e73\u53f0\u4e0a\u7528 7z \u91cd\u65b0\u6253\u5305\uff0c\u7136\u540e\u4e0a\u4f20\u5230 pi \u91cc\u89e3\u538b\u7f29\u6765\u89e3\u51b3\u7684\u3002<\/p>\n\n\n\n<p>\u6700\u540e\uff0c\u901a\u8fc7 python3 -V \u6765\u68c0\u67e5\u7248\u672c\u53f7\u662f\u5426\u7b26\u5408\u9884\u671f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u6211\u7684 pi \u91cc\u7684 python \u7248\u672c\u8fd8\u662f 3.5\uff0c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u4f7f\u7528\uff0c\u4f46\u662f arm \u67b6\u6784\u53c8\u6ca1\u6709\u73b0\u6210\u7684\u6e90\uff0c\u53ea\u597d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[227,300,5],"tags":[170,134],"class_list":["post-1128","post","type-post","status-publish","format-standard","hentry","category-banana-pi","category-python","category-daily","tag-170","tag-134"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/1128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1128"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/1128\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}