{"id":1018600,"date":"2024-12-27T12:44:11","date_gmt":"2024-12-27T04:44:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1018600.html"},"modified":"2024-12-27T12:44:13","modified_gmt":"2024-12-27T04:44:13","slug":"%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python3-9-0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1018600.html","title":{"rendered":"\u5982\u4f55\u5b89\u88c5python3.9.0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25161241\/166b54ab-8efd-43d3-be4b-7cdd688d1a0e.webp\" alt=\"\u5982\u4f55\u5b89\u88c5python3.9.0\" \/><\/p>\n<p><p> \u5b89\u88c5Python 3.9.0\u7684\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\uff0c\u5177\u4f53\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u60a8\u6240\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002<strong>\u5728Windows\u4e0a\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7Python\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u7a0b\u5e8f\u8fdb\u884c\u5b89\u88c5\u3001\u5728MacOS\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528Homebrew\u6765\u5b89\u88c5\u3001\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u6216\u8005\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5<\/strong>\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u5347\u5b89\u88c5\u6548\u7387\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001WINDOWS\u7cfb\u7edf\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5728Windows\u4e0a\u5b89\u88c5Python 3.9.0\u76f8\u5bf9\u7b80\u5355\uff0c\u4e3b\u8981\u662f\u901a\u8fc7\u4e0b\u8f7d\u5b98\u65b9\u5b89\u88c5\u7a0b\u5e8f\u6765\u5b8c\u6210\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dPython\u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E3%80%82%E5%9C%A8%E4%B8%8B%E8%BD%BD%E9%A1%B5%E9%9D%A2%EF%BC%8C%E6%89%BE%E5%88%B0Python\">https:\/\/www.python.org\/\uff09\u3002\u5728\u4e0b\u8f7d\u9875\u9762\uff0c\u627e\u5230Python<\/a> 3.9.0\u7248\u672c\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002\u786e\u4fdd\u9009\u62e9\u4e0e\u60a8\u7684\u7cfb\u7edf\u67b6\u6784\uff0832\u4f4d\u621664\u4f4d\uff09\u5bf9\u5e94\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u7a0b\u5e8f\u4ee5\u5f00\u59cb\u5b89\u88c5\u3002\u5b89\u88c5\u754c\u9762\u4f1a\u51fa\u73b0\u4e00\u4e2a\u91cd\u8981\u7684\u9009\u9879\u201cAdd Python 3.9 to PATH\u201d\uff0c\u52a1\u5fc5\u52fe\u9009\u6b64\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fddPython\u547d\u4ee4\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5b89\u88c5\u7c7b\u578b<\/strong><\/p>\n<\/p>\n<p><p>\u60a8\u53ef\u4ee5\u9009\u62e9\u201cInstall Now\u201d\u8fdb\u884c\u9ed8\u8ba4\u5b89\u88c5\uff0c\u6216\u8005\u9009\u62e9\u201cCustomize Installation\u201d\u8fdb\u884c\u81ea\u5b9a\u4e49\u5b89\u88c5\u3002\u5982\u679c\u5bf9\u5b89\u88c5\u8def\u5f84\u6216\u8005\u7ec4\u4ef6\u6709\u7279\u6b8a\u9700\u6c42\uff0c\u5efa\u8bae\u9009\u62e9\u81ea\u5b9a\u4e49\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u5b8c\u6210\u9a8c\u8bc1<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165<code>python --version<\/code>\u547d\u4ee4\u3002\u5982\u679c\u5b89\u88c5\u6210\u529f\uff0c\u60a8\u5c06\u770b\u5230Python 3.9.0\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001MACOS\u7cfb\u7edf\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5728MacOS\u4e0a\u5b89\u88c5Python\u53ef\u4ee5\u901a\u8fc7Homebrew\u5305\u7ba1\u7406\u5668\u6765\u5b8c\u6210\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Homebrew<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u60a8\u8fd8\u6ca1\u6709\u5b89\u88c5Homebrew\uff0c\u9996\u5148\u9700\u8981\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Homebrew\u5b89\u88c5Python 3.9.0<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5Python 3.9.0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install python@3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6ePython\u8def\u5f84<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u80fd\u9700\u8981\u5c06Python 3.9\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8bbe\u7f6e\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">echo &#39;export PATH=&quot;\/usr\/local\/opt\/python@3.9\/bin:$PATH&quot;&#39; &gt;&gt; ~\/.bash_profile<\/p>\n<p>source ~\/.bash_profile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u8f93\u5165<code>python3 --version<\/code>\uff0c\u67e5\u770b\u662f\u5426\u663e\u793aPython 3.9.0\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001LINUX\u7cfb\u7edf\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u6216\u8005\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e0d\u540c\u7684Linux\u53d1\u884c\u7248\uff0c\u5b89\u88c5\u547d\u4ee4\u4f1a\u6709\u6240\u4e0d\u540c\u3002\u4ee5\u4e0b\u662f\u5e38\u89c1\u53d1\u884c\u7248\u7684\u5b89\u88c5\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>Ubuntu\/Debian<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt install python3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>Fedora<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo dnf install python3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>CentOS\/RHEL<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u542f\u7528EPEL\u548cSoftware Collections (SCL)\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo yum install centos-release-scl<\/p>\n<p>sudo yum install rh-python39<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u6fc0\u6d3bPython 3.9\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">scl enable rh-python39 bash<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u7279\u5b9a\u914d\u7f6e\u6216\u8005\u5728\u4e0d\u652f\u6301\u7684Linux\u53d1\u884c\u7248\u4e0a\u5b89\u88c5\uff0c\u53ef\u4ee5\u9009\u62e9\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1\uff1a<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u51c6\u5907\u4f9d\u8d56<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86\u6784\u5efaPython\u6240\u9700\u7684\u4f9d\u8d56\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0b\u8f7d\u6e90\u4ee3\u7801<\/strong><\/p>\n<\/p>\n<p><p>\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7dPython 3.9.0\u7684\u6e90\u4ee3\u7801\u538b\u7f29\u5305\uff0c\u5e76\u89e3\u538b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">wget https:\/\/www.python.org\/ftp\/python\/3.9.0\/Python-3.9.0.tgz<\/p>\n<p>tar -xf Python-3.9.0.tgz<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u8bd1\u5e76\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u8fdb\u5165\u89e3\u538b\u540e\u7684\u76ee\u5f55\u5e76\u8fdb\u884c\u7f16\u8bd1\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cd Python-3.9.0<\/p>\n<p>.\/configure --enable-optimizations<\/p>\n<p>make -j $(nproc)<\/p>\n<p>sudo make altinstall<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u8f93\u5165<code>python3.9 --version<\/code>\uff0c\u786e\u8ba4\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u914d\u7f6e\u4e0e\u7ba1\u7406<\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python 3.9.0\u540e\uff0c\u53ef\u80fd\u8fd8\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\u548c\u7ba1\u7406\u5de5\u4f5c\uff0c\u4ee5\u786e\u4fdd\u80fd\u591f\u9ad8\u6548\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u786e\u4fddPython\u7684\u6267\u884c\u6587\u4ef6\u8def\u5f84\u5df2\u7ecf\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u7ec8\u7aef\u6216\u8005\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u76f4\u63a5\u8c03\u7528Python\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u865a\u62df\u73af\u5883\u7ba1\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7684<code>venv<\/code>\u6a21\u5757\u521b\u5efa\u865a\u62df\u73af\u5883\uff0c\u4ee5\u4fbf\u4e3a\u4e0d\u540c\u7684\u9879\u76ee\u9694\u79bb\u4f9d\u8d56\u5e93\u3002\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3.9 -m venv my_project_env<\/p>\n<p>source my_project_env\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5305\u7ba1\u7406\u5de5\u5177<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>pip<\/code>\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305\u3002\u786e\u4fdd<code>pip<\/code>\u5df2\u7ecf\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\uff0c\u4ee5\u4fbf\u80fd\u591f\u5b89\u88c5\u6700\u65b0\u7684\u5305\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3.9 -m pip install --upgrade pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u7ba1\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u7cfb\u7edf\u4e2d\u540c\u65f6\u5b58\u5728\u591a\u4e2aPython\u7248\u672c\uff0c\u4f7f\u7528\u5de5\u5177\u5982<code>pyenv<\/code>\u6765\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\uff0c\u8fd9\u6837\u53ef\u4ee5\u7075\u6d3b\u5207\u6362\u4e0d\u540c\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python 3.9.0\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u4e0b\u9762\u63d0\u4f9b\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8def\u5f84\u672a\u8bbe\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165<code>python<\/code>\u6216\u8005<code>python3<\/code>\u65f6\u663e\u793a\u672a\u627e\u5230\u547d\u4ee4\uff0c\u53ef\u80fd\u662f\u56e0\u4e3aPython\u7684\u8def\u5f84\u672a\u6b63\u786e\u8bbe\u7f6e\u3002\u5728Windows\u4e0a\uff0c\u786e\u4fdd\u5b89\u88c5\u65f6\u52fe\u9009\u4e86\u201cAdd Python 3.9 to PATH\u201d\u3002\u5728MacOS\u548cLinux\u4e0a\uff0c\u624b\u52a8\u5c06Python\u8def\u5f84\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f3a\u5c11\u4f9d\u8d56<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4ece\u6e90\u4ee3\u7801\u7f16\u8bd1Python\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u7f3a\u5c11\u4f9d\u8d56\u7684\u9519\u8bef\u3002\u6839\u636e\u9519\u8bef\u63d0\u793a\u5b89\u88c5\u76f8\u5e94\u7684\u4f9d\u8d56\u5e93\uff0c\u7136\u540e\u91cd\u65b0\u7f16\u8bd1\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u51b2\u7a81<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u7cfb\u7edf\u4e2d\u5b58\u5728\u591a\u4e2aPython\u7248\u672c\uff0c\u8c03\u7528<code>python<\/code>\u547d\u4ee4\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0\u7248\u672c\u51b2\u7a81\u3002\u53ef\u4ee5\u901a\u8fc7<code>python3.9<\/code>\u6216\u8005\u8bbe\u7f6e\u522b\u540d\u7684\u65b9\u5f0f\u6765\u6307\u5b9a\u4f7f\u7528Python 3.9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u5b89\u88c5\u8f6f\u4ef6\u5305\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u6743\u9650\u4e0d\u8db3\u7684\u95ee\u9898\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u524d\u6dfb\u52a0<code>sudo<\/code>\u6765\u63d0\u5347\u6743\u9650\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u8be6\u7ec6\u6b65\u9aa4\u548c\u6307\u5357\uff0c\u76f8\u4fe1\u60a8\u80fd\u591f\u987a\u5229\u5b89\u88c5\u548c\u914d\u7f6ePython 3.9.0\uff0c\u5e76\u89e3\u51b3\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u9047\u5230\u7684\u5404\u79cd\u95ee\u9898\u3002\u65e0\u8bba\u662fWindows\u3001MacOS\u8fd8\u662fLinux\u7cfb\u7edf\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u548c\u5de5\u5177\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5b89\u88c5\u6548\u7387\u548c\u4f7f\u7528\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u64cd\u4f5c\u7cfb\u7edf\u6765\u5b89\u88c5Python 3.9.0\uff1f<\/strong><br \/>\u5728\u5b89\u88c5Python 3.9.0\u4e4b\u524d\uff0c\u786e\u4fdd\u60a8\u9009\u62e9\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0e\u8be5\u7248\u672c\u517c\u5bb9\u3002Python 3.9.0\u652f\u6301Windows\u3001macOS\u548cLinux\u7b49\u4e3b\u6d41\u64cd\u4f5c\u7cfb\u7edf\u3002\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u786e\u8ba4\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\uff0c\u5e76\u4e0b\u8f7d\u76f8\u5e94\u7684\u5b89\u88c5\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5b89\u88c5Python 3.9.0\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\uff1f<\/strong><br \/>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u6709\u4e00\u4e2a\u91cd\u8981\u7684\u6b65\u9aa4\u662f\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u786e\u4fdd\u5728\u5b89\u88c5\u5411\u5bfc\u4e2d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\u3002\u8fd9\u5c06\u65b9\u4fbf\u60a8\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002Linux\u548cmacOS\u7528\u6237\u901a\u5e38\u9700\u8981\u5728\u7ec8\u7aef\u4e2d\u624b\u52a8\u8bbe\u7f6ePATH\u53d8\u91cf\u3002<\/p>\n<p><strong>\u5982\u4f55\u9a8c\u8bc1Python 3.9.0\u662f\u5426\u6210\u529f\u5b89\u88c5\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>python3 --version<\/code>\u6216<code>python --version<\/code>\u6765\u68c0\u67e5Python\u7684\u7248\u672c\u3002\u5982\u679c\u5b89\u88c5\u6210\u529f\uff0c\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u201cPython 3.9.0\u201d\u7684\u8f93\u51fa\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u7b80\u5355\u7684Python\u811a\u672c\u6765\u6d4b\u8bd5\u529f\u80fd\u662f\u5426\u6b63\u5e38\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5b89\u88c5Python 3.9.0\u7684\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fdb\u884c\uff0c\u5177\u4f53\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u60a8\u6240\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u5728Windows\u4e0a [&hellip;]","protected":false},"author":3,"featured_media":1018605,"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\/1018600"}],"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=1018600"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1018600\/revisions"}],"predecessor-version":[{"id":1018606,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1018600\/revisions\/1018606"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1018605"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1018600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1018600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1018600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}