{"id":39089,"date":"2020-02-21T19:39:11","date_gmt":"2020-02-21T11:39:11","guid":{"rendered":"http:\/\/4563.org\/?p=39089"},"modified":"2020-02-21T19:39:11","modified_gmt":"2020-02-21T11:39:11","slug":"python%e7%89%88%e6%9c%ac%e5%ae%89%e8%a3%85%e7%96%91%e9%97%ae","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=39089","title":{"rendered":"Python\u7248\u672c\u5b89\u88c5\u7591\u95ee"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>Acid<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:13:20\t<\/p>\n<h3>Python\u7248\u672c\u5b89\u88c5\u7591\u95ee<\/h3>\n<p>  \t\t\u6c42\u8001\u54e5\u4eec\u6307\u70b9\uff0c\u6211\u7528wget\u4e0b\u8f7dpython3.8.\u7684\u538b\u7f29\u5305\uff0c\u600e\u4e48\u5b89\u88c5\u5b8c\u663e\u793a\u7248\u672c\u662f3.6.8\u554a:L \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ibmall<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:14:54\t<\/p>\n<h3><\/h3>\n<p>  \t\troot@QuixoticRealistic-VM:~# python -V<br \/>  Python 2.7.12<br \/>  root@QuixoticRealistic-VM:~# python3 -V<br \/>  Python 3.5.2<br \/>  root@QuixoticRealistic-VM:~# python3.6 -V<br \/>  Python 3.6.8<br \/>  root@QuixoticRealistic-VM:~# python3.8 -V<br \/>  ?\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cherbim<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:15:33\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 cherbim \u4e8e 2019-12-7 14:26 \u7f16\u8f91 <\/p>\n<p> \u8bf4\u660e\u6ca1\u5efa\u7acb\u8f6f\u94fe\u63a5&#8230;.\u3002\u6bd4\u5982\u4f60\u539f\u672cpython3\u7684\u8f6f\u94fe\u63a5\u662f3.6.8\uff0c\u4f60\u5b89\u88c5\u5b8c3.8\uff0c\u4e0d\u4fee\u6539\u8f6f\u94fe\u63a5\uff0c\u90a3\u7b49\u4e8e\u6ca1\u5b89\u88c5\uff0c\u8f93\u5165python3\u8fd8\u662f3.6.8<\/p>\n<p>  \u89e3\u51b3\u65b9\u6cd5\uff08\u524d\u63d0\u4f60\u786e\u8ba43.8\u5b89\u88c5\u6210\u529f\u4e86\uff0c\u51fa\u73b0success\uff09\uff1a<br \/>  ln -s \/python3.8\u8def\u5f84 \/usr\/bin\/python3<\/p>\n<p>  \u82e5\u662f\u63d0\u793a\u5b58\u5728\/usr\/bin\/python3\uff0c\u76f4\u63a5 rm -rf \/usr\/bin\/python3 \u518d\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4<br \/>  \u627e\u4e0d\u5230python3.8\u8def\u5f84\uff1f\u8f93\u5165\u4e00\u4e0b\u6307\u4ee4\u627e\u5230\u5b89\u88c5\u8def\u5f84\uff0c<br \/>  whereis python3\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Acid<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:18:03\t<\/p>\n<h3><\/h3>\n<p>  \t\troot@ubuntu:~# python3.8 -V<\/p>\n<p>  Command &#8216;python3.8&#8217; not found, did you mean:<\/p>\n<p>  command &#8216;python3.6&#8217; from deb python3.6-minimal<br \/>  command &#8216;python3.7&#8217; from deb python3.7-minimal<\/p>\n<p>  Try: apt install &lt;deb name&gt;<br \/>  \u8001\u54e5\uff0c\u6211\u4e00\u8f93\u5165\u5c31\u56de\u590d\u8fd9\u4e2a\uff0c\u662f\u4e0d\u662f\u5b89\u88c5\u7684\u4e0d\u5bf9\u554a:L\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cherbim<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:21:07\t<\/p>\n<h3><\/h3>\n<p>  \t\tAcid \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:18<br \/>  root@ubuntu:~# python3.8 -V<\/p>\n<p>  Command &#8216;python3.8&#8217; not found, did you mean:<\/p>\n<p> \u770b\u5230apt\uff0c\u6211\u5c31\u77e5\u9053\u4e3a\u5565\u4e86\uff0c\u4f60\u7cfb\u7edf\u81ea\u5e26\u7684python3\u6307\u5411\u7684\u662f3.6.8 \uff0c\u628apython3 \u8f6f\u94fe\u63a5\u4fee\u6539\u4e3apython3.8\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Acid<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:22:15\t<\/p>\n<h3><\/h3>\n<p>  \t\tcherbim \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:15<br \/>  \u8bf4\u660e\u6ca1\u5efa\u7acb\u8f6f\u94fe\u63a5&#8230;.\u3002\u6bd4\u5982\u4f60\u539f\u672cpython3\u7684\u8f6f\u94fe\u63a5\u662f3.6.8\uff0c\u4f60\u5b89\u88c5\u5b8c3.8\uff0c\u4e0d\u4fee\u6539\u8f6f\u94fe\u63a5\uff0c\u90a3\u7b49\u4e8e\u6ca1\u5b89\u88c5\uff0c\u8f93 &#8230;<\/p>\n<p> \u8c22\u8c22\u8001\u54e5\uff0c\u5b89\u88c5\u7684\u65f6\u5019\u63d0\u793a\u6210\u529f\u4e86\uff0c\u6211\u5148\u6309\u4f60\u7684\u65b9\u6cd5\u8bd5\u4e00\u8bd5:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zxxx<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:27:05\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5b89\u88c5\u662f\u4e0d\u662f\u6709\u4e2a\u8986\u76d6\u6a21\u5f0f\uff0c\u76f4\u63a5\u66ff\u6362\u539f\u6765\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>rule<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:28:31\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u731c\u4f60\u4eec\u8fd9\u4e48\u641e\uff0c\u540e\u9762\u7cfb\u7edf\u90fd\u4f1a\u88ab\u4f60\u4eec\u73a9\u6302\u6389\uff0c\u4e0d\u8981\u968f\u4fbf\u6539\u7cfb\u7edf\u8f6f\u8fde\u63a5\uff0c\u589e\u52a0\u4e00\u4e2a\u8f6f\u8fde\u63a5\u5c31\u884c\u4e86\uff0c\u9b3c\u77e5\u9053\u7cfb\u7edf\u54ea\u91cc\u8c03\u7528\u4e86python\uff0c\u5230\u65f6\u5019\u7248\u672c\u4e0d\u4e00\u81f4\u80af\u5b9a\u5751\u6b7b\u4eba\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>cooioobb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:31:13\t<\/p>\n<h3><\/h3>\n<p>  \t\tcherbim \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:21<br \/>  \u770b\u5230apt\uff0c\u6211\u5c31\u77e5\u9053\u4e3a\u5565\u4e86\uff0c\u4f60\u7cfb\u7edf\u81ea\u5e26\u7684python3\u6307\u5411\u7684\u662f3.6.8 \uff0c\u628apython3 \u8f6f\u94fe\u63a5\u4fee\u6539\u4e3apython3.8 &#8230;<\/p>\n<p> \u4e00\u822c\u770b\u89c1apt\u6211\u5c31\u77e5\u9053\u662f\u6e90\u6ca1\u6539\u3002\u54c8\u54c8\u54c8\u8ddf\u6211\u4e00\u6837\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>rule<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:31:44\t<\/p>\n<h3><\/h3>\n<p>  \t\tcherbim \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-7 14:21<br \/>  \u770b\u5230apt\uff0c\u6211\u5c31\u77e5\u9053\u4e3a\u5565\u4e86\uff0c\u4f60\u7cfb\u7edf\u81ea\u5e26\u7684python3\u6307\u5411\u7684\u662f3.6.8 \uff0c\u628apython3 \u8f6f\u94fe\u63a5\u4fee\u6539\u4e3apython3.8 &#8230;<\/p>\n<p> \u4f60\u725b\u903c\uff0c\u542c\u4e0d\u542c\u968f\u4f60\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Acid \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/39089"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39089"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/39089\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39089"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}