{"id":5257,"date":"2020-03-22T06:20:00","date_gmt":"2020-03-21T22:20:00","guid":{"rendered":"https:\/\/www.ldhost.cn\/jc\/?p=5257"},"modified":"2020-03-15T17:43:18","modified_gmt":"2020-03-15T09:43:18","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%90%e8%a1%8cpython-3-6%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.ldhost.cn\/jc\/ot\/5257.html","title":{"rendered":"\u670d\u52a1\u5668\u8fd0\u884cPython 3.6\u5feb\u901f\u5b89\u88c5\u6307\u5357"},"content":{"rendered":"\n<p>\u5728VPS\u6216\u8fd0\u884cCentOS\u7684\u4e13\u7528<a href=\"https:\/\/www.ldhost.cn\/cnserver.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u7269\u7406\u670d\u52a1\u5668\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">\u7269\u7406\u670d\u52a1\u5668<\/a>\u4e0a\u5b89\u88c5Python 3.6\u7684\u5feb\u901f\u5b89\u88c5\u6307\u5357<\/p>\n\n\n\n<p>\u5728\u8be5\u793a\u4f8b\u4e2d\uff0c\u5177\u6709\u4f18\u5316\u548cpip\u5305\u7ba1\u7406\u7cfb\u7edf\u5b89\u88c5\u7684\u7a0b\u5e8f\u96c6<br> yum -y install perl gcc ncurses-devel expat-devel expect-devel \\<br> zlib-devel xz-devel libffi-devel git sqlite-devel openssl-devel<\/p>\n\n\n\n<p>wget https:\/\/www.python.org\/ftp\/python\/3.6.3\/Python-3.6.3.tar.xz<br>\ntar xJf Python-3.6.3.tar.xz<br>\ncd Python-3.6.3<\/p>\n\n\n\n<p>.\/configure &#8211;enable-optimizations<br>\nmake<br>\nmake install<\/p>\n\n\n\n<p>curl -O https:\/\/bootstrap.pypa.io\/get-pip.py<br>\npython3.6 get-pip.py<\/p>\n\n\n\n<p>pip3.6 install uwsgi flask sqlalchemy wtforms django celery<\/p>\n<div><img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/images\/ad-845-3.png\" alt=\"\u56fe\u7247\u63cf\u8ff0\" \/><\/div>","protected":false},"excerpt":{"rendered":"<p>\u5728VPS\u6216\u8fd0\u884cCentOS\u7684\u4e13\u7528\u7269\u7406\u670d\u52a1\u5668\u4e0a\u5b89\u88c5Python 3.6\u7684\u5feb\u901f\u5b89\u88c5\u6307\u5357 \u5728\u8be5\u793a\u4f8b\u4e2d\uff0c\u5177\u6709\u4f18\u5316\u548cpip\u5305\u7ba1\u7406\u7cfb\u7edf\u5b89\u88c5\u7684\u7a0b\u5e8f\u96c6 yum -y install perl gcc ncurses-devel expat-devel expect-devel \\ zlib-devel xz-devel libffi-devel git sqlite-devel openssl-devel wget https:\/\/www.python.org\/ftp\/python\/3.6.3\/Python-3.6.3.tar.xz tar xJf Python-3.6.3.tar.xz cd Python-&#8230; <a href=\"https:\/\/www.ldhost.cn\/jc\/ot\/5257.html\" class=\"readmore\">\u9605\u8bfb\u5168\u6587<span class=\"screen-reader-text\">\u670d\u52a1\u5668\u8fd0\u884cPython 3.6\u5feb\u901f\u5b89\u88c5\u6307\u5357<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-5257","post","type-post","status-publish","format-standard","hentry","category-ot","content-layout-excerpt-thumb"],"_links":{"self":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/5257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/comments?post=5257"}],"version-history":[{"count":1,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/5257\/revisions"}],"predecessor-version":[{"id":5258,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/5257\/revisions\/5258"}],"wp:attachment":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/media?parent=5257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/categories?post=5257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/tags?post=5257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}