{"id":114,"date":"2023-03-16T09:48:44","date_gmt":"2023-03-16T01:48:44","guid":{"rendered":"https:\/\/www.aqrboyblog.top\/?p=114"},"modified":"2023-03-31T17:07:16","modified_gmt":"2023-03-31T09:07:16","slug":"centos7%e5%ae%89%e8%a3%85python3-10-9","status":"publish","type":"post","link":"https:\/\/www.aqrboyblog.top\/?p=114","title":{"rendered":"centos7\u5b89\u88c5python3.10.9"},"content":{"rendered":"\n<p><strong>\u7b80\u5355\u8bf4\u660e<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Python2.7.5\u662fCentOS 7\u9ed8\u8ba4\u5b89\u88c5\u7684\u7248\u672c;<\/li>\n\n\n\n<li>Python3.6.8\u662fCentOS 7\u4e2d\u53ef\u4ee5\u901a\u8fc7\u9ed8\u8ba4repo\u5b89\u88c5\u5230\u7684\u6700\u65b0\u7248\u672c\uff1b<\/li>\n<\/ul>\n\n\n\n<p><strong>\u5b89\u88c5\u8fc7\u7a0b<\/strong><\/p>\n\n\n\n<p>\u5b98\u65b9\u6e90\u7801\u5305\u4e0b\u8f7d\u5730\u5740\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.python.org\/downloads\/source\/\" target=\"_blank\">https:\/\/www.python.org\/downloads\/source\/<\/a><\/p>\n\n\n\n<p>1. \u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum groupinstall \"Development Tools\"\nyum install openssl-devel bzip2-devel libffi-devel<\/code><\/pre>\n\n\n\n<p>2. \u4e0b\u8f7d\u6e90\u7801\u5305<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/www.python.org\/ftp\/python\/3.10.9\/Python-3.10.9.tgz<\/code><\/pre>\n\n\n\n<p>3. \u89e3\u538b\u8fdb\u5165<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar zxvf Python-3.10.9.tgz\ncd Python-3.10.9<\/code><\/pre>\n\n\n\n<p>4. \u7f16\u8bd1\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/configure --prefix=\/usr\/local\/python310\nmake &amp;&amp; make install<\/code><\/pre>\n\n\n\n<p>5. \u52a0\u5165\u7cfb\u7edf\u8def\u5f84<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'export PATH=\/usr\/local\/python310\/bin:$PATH' >> \/etc\/profile\nsource \/etc\/profile<\/code><\/pre>\n\n\n\n<p>6. \u68c0\u67e5\u7248\u672c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -V<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"text-justify\">\u7b80\u5355\u8bf4\u660e \u5b89\u88c5\u8fc7\u7a0b \u5b98\u65b9\u6e90\u7801\u5305\u4e0b\u8f7d\u5730\u5740\uff1aht [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":2,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":129,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/129"}],"wp:attachment":[{"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqrboyblog.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}