{"id":974158,"date":"2024-12-27T06:02:52","date_gmt":"2024-12-26T22:02:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/974158.html"},"modified":"2024-12-27T06:02:54","modified_gmt":"2024-12-26T22:02:54","slug":"%e5%a6%82%e4%bd%95%e5%8d%b8%e8%bd%bdpython3-9-5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/974158.html","title":{"rendered":"\u5982\u4f55\u5378\u8f7dpython3.9.5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200010\/615473e0-e9d3-4776-8cc1-70f9dc77bd3c.webp\" alt=\"\u5982\u4f55\u5378\u8f7dpython3.9.5\" \/><\/p>\n<p><p> <strong>\u5378\u8f7dPython 3.9.5\u7684\u6b65\u9aa4\u4e3b\u8981\u53d6\u51b3\u4e8e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u901a\u5e38\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u5728Windows\u4e0a\u4f7f\u7528\u63a7\u5236\u9762\u677f\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u3001\u5728macOS\u4e0a\u901a\u8fc7Homebrew\u6216\u624b\u52a8\u5220\u9664\u6587\u4ef6\u3001\u5728Linux\u4e0a\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u3002<\/strong>\u5728Windows\u4e0a\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u7684\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u6765\u5378\u8f7dPython\uff1b\u5728macOS\u4e0a\uff0c\u5982\u679c\u60a8\u662f\u901a\u8fc7Homebrew\u5b89\u88c5\u7684\uff0c\u53ef\u4ee5\u7528brew\u547d\u4ee4\u5378\u8f7d\uff1b\u5728Linux\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528apt-get\u6216\u5176\u4ed6\u5305\u7ba1\u7406\u5668\u5378\u8f7d\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001WINDOWS\u7cfb\u7edf\u4e0a\u5378\u8f7dPYTHON 3.9.5<\/p>\n<\/p>\n<p><p>\u5728Windows\u4e0a\u5378\u8f7dPython 3.9.5\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u5b8c\u6210\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5378\u8f7d<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u4efb\u52a1\u680f\u7684\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201c\u63a7\u5236\u9762\u677f\u201d\u627e\u5230\u5b83\u3002\u8fdb\u5165\u63a7\u5236\u9762\u677f\u540e\uff0c\u627e\u5230\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u9009\u9879\u3002\u8fd9\u91cc\u5217\u51fa\u4e86\u6240\u6709\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u3002\u6eda\u52a8\u5217\u8868\u627e\u5230\u201cPython 3.9.5\u201d\uff0c\u7136\u540e\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9\u201c\u5378\u8f7d\u201d\u3002\u6309\u7167\u5f39\u51fa\u7684\u5378\u8f7d\u5411\u5bfc\u8fdb\u884c\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u5378\u8f7d<\/strong><\/li>\n<\/ol>\n<p><p>\u6709\u65f6\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u6267\u884c\u5378\u8f7d\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u83b7\u53d6Python\u7684\u5b89\u88c5\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">wmic product where &quot;name like &#39;Python%%&#39;&quot; get name, version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u627e\u5230Python 3.9.5\u7684\u5b89\u88c5\u8def\u5f84\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">msiexec \/x {PRODUCT_CODE}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8bf7\u6ce8\u610f\uff0c<code>{PRODUCT_CODE}<\/code>\u662fPython\u5b89\u88c5\u5305\u7684\u4ea7\u54c1\u4ee3\u7801\uff0c\u60a8\u53ef\u4ee5\u5728\u6ce8\u518c\u8868\u4e2d\u627e\u5230\u5b83\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001MACOS\u7cfb\u7edf\u4e0a\u5378\u8f7dPYTHON 3.9.5<\/p>\n<\/p>\n<p><p>\u5728macOS\u4e0a\u5378\u8f7dPython 3.9.5\uff0c\u53ef\u4ee5\u901a\u8fc7Homebrew\u6216\u624b\u52a8\u5220\u9664\u76f8\u5173\u6587\u4ef6\u6765\u5b8c\u6210\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528Homebrew\u5378\u8f7d<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u60a8\u4f7f\u7528Homebrew\u5b89\u88c5\u4e86Python\uff0c\u5378\u8f7d\u5b83\u975e\u5e38\u7b80\u5355\u3002\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">brew uninstall python@3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Homebrew\u5c06\u81ea\u52a8\u5904\u7406Python\u53ca\u5176\u76f8\u5173\u4f9d\u8d56\u7684\u5378\u8f7d\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u624b\u52a8\u5220\u9664\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679cPython\u4e0d\u662f\u901a\u8fc7Homebrew\u5b89\u88c5\u7684\uff0c\u60a8\u53ef\u4ee5\u624b\u52a8\u5220\u9664\u76f8\u5173\u6587\u4ef6\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">sudo rm -rf \/Library\/Frameworks\/Python.framework\/Versions\/3.9<\/p>\n<p>sudo rm -rf &quot;\/Applications\/Python 3.9&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u60a8\u8fd8\u9700\u8981\u68c0\u67e5\u5e76\u5220\u9664<code>\/usr\/local\/bin<\/code>\u76ee\u5f55\u4e0b\u6240\u6709\u4e0ePython 3.9\u76f8\u5173\u7684\u7b26\u53f7\u94fe\u63a5\uff0c\u4f8b\u5982<code>python3.9<\/code>\u548c<code>pip3.9<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001LINUX\u7cfb\u7edf\u4e0a\u5378\u8f7dPYTHON 3.9.5<\/p>\n<\/p>\n<p><p>\u5728Linux\u4e0a\uff0cPython\u901a\u5e38\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff0c\u56e0\u6b64\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5378\u8f7d\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528APT\u5305\u7ba1\u7406\u5668<\/strong><\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u57fa\u4e8eDebian\u7684\u53d1\u884c\u7248\uff08\u5982Ubuntu\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7dPython 3.9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">sudo apt-get remove python3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u8981\u5f7b\u5e95\u6e05\u9664\u914d\u7f6e\u6587\u4ef6\u548c\u4f9d\u8d56\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">sudo apt-get purge python3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528YUM\u5305\u7ba1\u7406\u5668<\/strong><\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u57fa\u4e8eRed Hat\u7684\u53d1\u884c\u7248\uff08\u5982Fedora\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528YUM\u5378\u8f7d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">sudo yum remove python39<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8bf7\u6ce8\u610f\uff0c\u5378\u8f7dPython\u53ef\u80fd\u4f1a\u5f71\u54cd\u7cfb\u7edf\u7684\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u548c\u670d\u52a1\uff0c\u56e0\u4e3a\u8bb8\u591aLinux\u5de5\u5177\u4f9d\u8d56\u4e8ePython\u3002\u56e0\u6b64\uff0c\u8bf7\u5728\u5378\u8f7d\u4e4b\u524d\u786e\u8ba4\u4e0d\u518d\u9700\u8981Python 3.9.5\u6216\u5176\u76f8\u5173\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5378\u8f7dPYTHON\u540e\u6e05\u7406\u6b8b\u7559\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u4e0d\u8bba\u60a8\u4f7f\u7528\u54ea\u79cd\u64cd\u4f5c\u7cfb\u7edf\u548c\u65b9\u6cd5\u5378\u8f7dPython\uff0c\u5b8c\u6210\u5378\u8f7d\u540e\uff0c\u5efa\u8bae\u68c0\u67e5\u5e76\u6e05\u7406\u7cfb\u7edf\u4e2d\u7684\u6b8b\u7559\u6587\u4ef6\u548c\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6e05\u7406\u73af\u5883\u53d8\u91cf<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Windows\u4e0a\uff0c\u6253\u5f00\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u5bf9\u8bdd\u6846\uff0c\u627e\u5230\u201c\u73af\u5883\u53d8\u91cf\u201d\u9009\u9879\uff0c\u68c0\u67e5\u5e76\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u73af\u5883\u53d8\u91cf\uff0c\u4f8b\u5982<code>PYTHONPATH<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u5728macOS\u548cLinux\u4e0a\uff0c\u68c0\u67e5\u5e76\u7f16\u8f91shell\u914d\u7f6e\u6587\u4ef6\uff08\u5982<code>~\/.bashrc<\/code>\u6216<code>~\/.zshrc<\/code>\uff09\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u8def\u5f84\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5220\u9664\u7f13\u5b58\u548c\u914d\u7f6e\u6587\u4ef6<\/strong><\/li>\n<\/ol>\n<p><p>Python\u5728\u7528\u6237\u76ee\u5f55\u4e2d\u521b\u5efa\u7f13\u5b58\u548c\u914d\u7f6e\u6587\u4ef6\uff0c\u901a\u5e38\u4f4d\u4e8e<code>~\/.cache<\/code>\u548c<code>~\/.config<\/code>\u76ee\u5f55\u4e0b\u3002\u60a8\u53ef\u4ee5\u5220\u9664\u8fd9\u4e9b\u76ee\u5f55\u4e2d\u4e0ePython\u76f8\u5173\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5220\u9664\u865a\u62df\u73af\u5883<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u60a8\u521b\u5efa\u4e86Python\u865a\u62df\u73af\u5883\uff0c\u5378\u8f7dPython\u540e\u8fd9\u4e9b\u73af\u5883\u53ef\u80fd\u65e0\u6548\u3002\u60a8\u9700\u8981\u624b\u52a8\u5220\u9664\u5b83\u4eec\u3002\u901a\u5e38\u865a\u62df\u73af\u5883\u4f4d\u4e8e\u9879\u76ee\u76ee\u5f55\u4e2d\uff0c\u60a8\u53ef\u4ee5\u76f4\u63a5\u5220\u9664\u6574\u4e2a\u865a\u62df\u73af\u5883\u6587\u4ef6\u5939\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5378\u8f7d\u540e\u5b89\u88c5\u5176\u4ed6\u7248\u672cPYTHON<\/p>\n<\/p>\n<p><p>\u5378\u8f7dPython 3.9.5\u540e\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u7248\u672c\u7684Python\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u5b89\u88c5\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d<\/strong><\/li>\n<\/ol>\n<p><p>\u60a8\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5176\u4ed6\u7248\u672cPython\u5b89\u88c5\u5305\u3002\u4e0b\u8f7d\u540e\uff0c\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Linux\u4e0a\uff0c\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u5176\u4ed6\u7248\u672c\u7684Python\u3002\u4f8b\u5982\uff0c\u5728Ubuntu\u4e0a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Python 3.8\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">sudo apt-get install python3.8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f7f\u7528Python\u7248\u672c\u7ba1\u7406\u5de5\u5177<\/strong><\/li>\n<\/ol>\n<p><p>\u6709\u4e9b\u5de5\u5177\uff08\u5982<code>pyenv<\/code>\uff09\u5141\u8bb8\u60a8\u5728\u540c\u4e00\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u3002\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u548c\u6d4b\u8bd5\u73af\u5883\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5378\u8f7dPYTHON\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u5378\u8f7dPython\u65f6\uff0c\u8bf7\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5907\u4efd\u91cd\u8981\u6570\u636e<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5378\u8f7dPython\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u5907\u4efd\u6240\u6709\u91cd\u8981\u7684\u6570\u636e\u548c\u4ee3\u7801\u3002\u5378\u8f7d\u53ef\u80fd\u4f1a\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u914d\u7f6e\u548c\u811a\u672c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u68c0\u67e5\u4f9d\u8d56\u5173\u7cfb<\/strong><\/li>\n<\/ol>\n<p><p>Python\u901a\u5e38\u662f\u8bb8\u591a\u5e94\u7528\u7a0b\u5e8f\u7684\u4f9d\u8d56\u3002\u5728\u5378\u8f7d\u4e4b\u524d\uff0c\u8bf7\u786e\u8ba4\u6ca1\u6709\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u4f9d\u8d56\u4e8e\u60a8\u8981\u5378\u8f7d\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6ce8\u610f\u7cfb\u7edf\u5f71\u54cd<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4e00\u4e9b\u64cd\u4f5c\u7cfb\u7edf\uff08\u7279\u522b\u662fLinux\uff09\u4e0a\uff0cPython\u662f\u7cfb\u7edf\u5de5\u5177\u7684\u6838\u5fc3\u4f9d\u8d56\u3002\u5378\u8f7dPython\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u4e0d\u7a33\u5b9a\u6216\u65e0\u6cd5\u542f\u52a8\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u53ea\u5378\u8f7d\u4e0d\u518d\u9700\u8981\u7684Python\u7248\u672c\uff0c\u540c\u65f6\u4fdd\u7559\u7cfb\u7edf\u6240\u9700\u7684\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5378\u8f7dPython 3.9.5\u7684\u8fc7\u7a0b\u56e0\u64cd\u4f5c\u7cfb\u7edf\u800c\u5f02\uff0c\u4f46\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u3001\u547d\u4ee4\u63d0\u793a\u7b26\u3001\u5305\u7ba1\u7406\u5668\u6216\u624b\u52a8\u5220\u9664\u6587\u4ef6\u6765\u5b8c\u6210\u3002\u5378\u8f7d\u540e\uff0c\u6e05\u7406\u7cfb\u7edf\u4e2d\u7684\u6b8b\u7559\u6587\u4ef6\u548c\u73af\u5883\u53d8\u91cf\u975e\u5e38\u91cd\u8981\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u6e05\u6d01\u6027\u3002\u6700\u540e\uff0c\u6ce8\u610f\u5907\u4efd\u91cd\u8981\u6570\u636e\uff0c\u5e76\u786e\u8ba4\u5378\u8f7d\u64cd\u4f5c\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u7cfb\u7edf\u529f\u80fd\u6216\u5e94\u7528\u7a0b\u5e8f\u3002\u65e0\u8bba\u60a8\u662f\u5f00\u53d1\u4eba\u5458\u8fd8\u662f\u666e\u901a\u7528\u6237\uff0c\u4e86\u89e3\u8fd9\u4e9b\u6b65\u9aa4\u548c\u6ce8\u610f\u4e8b\u9879\u90fd\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7ba1\u7406Python\u73af\u5883\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u786e\u8ba4\u6211\u7684\u7cfb\u7edf\u4e0a\u662f\u5426\u5b89\u88c5\u4e86Python 3.9.5\uff1f<\/strong><br \/>\u8981\u786e\u8ba4Python 3.9.5\u662f\u5426\u5b89\u88c5\u5728\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u5e76\u8f93\u5165<code>python3 --version<\/code>\u6216<code>python --version<\/code>\u3002\u5982\u679c\u5b89\u88c5\u4e86\u8be5\u7248\u672c\uff0c\u7cfb\u7edf\u5c06\u663e\u793a\u7248\u672c\u53f7\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u60a8\u4f1a\u770b\u5230\u4e00\u6761\u9519\u8bef\u6d88\u606f\u3002<\/p>\n<p><strong>\u5378\u8f7dPython 3.9.5\u540e\u662f\u5426\u4f1a\u5f71\u54cd\u5176\u4ed6\u7a0b\u5e8f\u7684\u8fd0\u884c\uff1f<\/strong><br \/>\u5378\u8f7dPython 3.9.5\u53ef\u80fd\u4f1a\u5f71\u54cd\u4f9d\u8d56\u4e8e\u8be5\u7248\u672c\u7684\u7a0b\u5e8f\u6216\u9879\u76ee\u3002\u5982\u679c\u60a8\u7684\u7cfb\u7edf\u4e0a\u8fd8\u5b89\u88c5\u4e86\u5176\u4ed6\u7248\u672c\u7684Python\uff0c\u67d0\u4e9b\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u7ee7\u7eed\u6b63\u5e38\u8fd0\u884c\u3002\u4e3a\u4e86\u907f\u514d\u6f5c\u5728\u95ee\u9898\uff0c\u5efa\u8bae\u5728\u5378\u8f7d\u524d\u68c0\u67e5\u4f9d\u8d56\u4e8e\u6b64\u7248\u672c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5378\u8f7dPython 3.9.5\uff1f<\/strong><br \/>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u627e\u5230\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\uff0c\u7136\u540e\u627e\u5230Python 3.9.5\uff0c\u70b9\u51fb\u5378\u8f7d\u3002\u5728macOS\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u62d6\u52a8Python\u6587\u4ef6\u5939\u5230\u5e9f\u7eb8\u7bd3\u6765\u5378\u8f7d\uff0c\u6216\u8005\u4f7f\u7528Homebrew\u5378\u8f7d\u3002\u5728Linux\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff0c\u4f8b\u5982\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>sudo apt remove python3.9<\/code>\u6765\u5378\u8f7d\u3002\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u6b65\u9aa4\uff0c\u786e\u4fdd\u6839\u636e\u60a8\u7684\u7cfb\u7edf\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5378\u8f7dPython 3.9.5\u7684\u6b65\u9aa4\u4e3b\u8981\u53d6\u51b3\u4e8e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u901a\u5e38\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u5728Windows\u4e0a\u4f7f\u7528\u63a7\u5236\u9762\u677f\u6216\u547d\u4ee4 [&hellip;]","protected":false},"author":3,"featured_media":974160,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974158"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=974158"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974158\/revisions"}],"predecessor-version":[{"id":974162,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974158\/revisions\/974162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/974160"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=974158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=974158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=974158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}