{"id":1013616,"date":"2024-12-27T11:49:30","date_gmt":"2024-12-27T03:49:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1013616.html"},"modified":"2024-12-27T11:49:32","modified_gmt":"2024-12-27T03:49:32","slug":"%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python3-7-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1013616.html","title":{"rendered":"\u5982\u4f55\u5b89\u88c5python3.7.2"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090959\/ff2ff488-1ba6-4549-8c4a-b9446e62413b.webp\" alt=\"\u5982\u4f55\u5b89\u88c5python3.7.2\" \/><\/p>\n<p><p> <strong>\u8981\u5b89\u88c5Python 3.7.2\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528Python\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u5305\u3001\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5982Homebrew\u6216apt-get\u5b89\u88c5\u3001\u4f7f\u7528Anaconda\u5b89\u88c5Python\u3002<\/strong>\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u5177\u4f53\u9009\u62e9\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u4f7f\u7528\u4e60\u60ef\u6765\u51b3\u5b9a\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528Python\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u548c\u5b89\u88c5Python 3.7.2\u4ece\u5b98\u65b9\u7f51\u7ad9\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u9996\u5148\uff0c\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E5%9C%A8%E4%B8%8B%E8%BD%BD%E9%A1%B5%E9%9D%A2%E9%80%89%E6%8B%A9%E9%80%82%E5%90%88%E4%BD%A0%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%E3%80%82%E5%9C%A8Windows%E4%B8%8A%EF%BC%8C%E4%B8%8B%E8%BD%BD%E5%8F%AF%E6%89%A7%E8%A1%8C%E5%AE%89%E8%A3%85%E6%96%87%E4%BB%B6%EF%BC%8C%E5%8F%8C%E5%87%BB%E8%BF%90%E8%A1%8C%E5%B9%B6%E6%8C%89%E7%85%A7%E5%90%91%E5%AF%BC%E6%8F%90%E7%A4%BA%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85%E3%80%82%E5%9C%A8MacOS%E4%B8%8A%EF%BC%8C%E5%8F%AF%E4%BB%A5%E4%B8%8B%E8%BD%BDpkg%E6%96%87%E4%BB%B6%EF%BC%8C%E7%84%B6%E5%90%8E%E5%8F%8C%E5%87%BB%E6%89%93%E5%BC%80%E5%B9%B6%E5%AE%89%E8%A3%85%E3%80%82%E5%9C%A8Linux%E4%B8%8A%EF%BC%8C%E5%AE%98%E6%96%B9%E7%BD%91%E7%AB%99%E6%8F%90%E4%BE%9B%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%E5%8F%AF%E8%83%BD%E9%9C%80%E8%A6%81%E9%A2%9D%E5%A4%96%E7%9A%84%E6%AD%A5%E9%AA%A4%E6%9D%A5%E7%A1%AE%E4%BF%9D%E4%BE%9D%E8%B5%96%E9%A1%B9%E6%AD%A3%E7%A1%AE%E9%85%8D%E7%BD%AE%E3%80%82\">https:\/\/www.python.org\/\uff09\uff0c\u5728\u4e0b\u8f7d\u9875\u9762\u9009\u62e9\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002\u5728Windows\u4e0a\uff0c\u4e0b\u8f7d\u53ef\u6267\u884c\u5b89\u88c5\u6587\u4ef6\uff0c\u53cc\u51fb\u8fd0\u884c\u5e76\u6309\u7167\u5411\u5bfc\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5728MacOS\u4e0a\uff0c\u53ef\u4ee5\u4e0b\u8f7dpkg\u6587\u4ef6\uff0c\u7136\u540e\u53cc\u51fb\u6253\u5f00\u5e76\u5b89\u88c5\u3002\u5728Linux\u4e0a\uff0c\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u7684\u5b89\u88c5\u5305\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u6b65\u9aa4\u6765\u786e\u4fdd\u4f9d\u8d56\u9879\u6b63\u786e\u914d\u7f6e\u3002<\/a><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u901a\u8fc7\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5Python 3.7.2<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/strong><\/p>\n<\/p>\n<p><p>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E5%9C%A8%E4%B8%8B%E8%BD%BD%E9%A1%B5%E9%9D%A2%E4%B8%AD%E6%89%BE%E5%88%B0Python\">https:\/\/www.python.org\/\uff09\uff0c\u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\u627e\u5230Python<\/a> 3.7.2\u7684\u7248\u672c\u3002\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u5bf9\u5e94\u7684\u5b89\u88c5\u5305\u3002Windows\u7528\u6237\u901a\u5e38\u4e0b\u8f7d.exe\u6587\u4ef6\uff0cmacOS\u7528\u6237\u4e0b\u8f7d.pkg\u6587\u4ef6\uff0c\u800cLinux\u7528\u6237\u53ef\u80fd\u4e0b\u8f7d.tar.xz\u6e90\u4ee3\u7801\u538b\u7f29\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Python 3.7.2<\/strong><\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>Windows<\/strong>\uff1a\u53cc\u51fb\u4e0b\u8f7d\u7684.exe\u6587\u4ef6\uff0c\u542f\u52a8\u5b89\u88c5\u5411\u5bfc\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u5efa\u8bae\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u63a5\u4e0b\u6765\uff0c\u9009\u62e9\u201cCustomize installation\u201d\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5b89\u88c5\u4f4d\u7f6e\u548c\u529f\u80fd\uff0c\u6216\u8005\u76f4\u63a5\u70b9\u51fb\u201cInstall Now\u201d\u8fdb\u884c\u9ed8\u8ba4\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>macOS<\/strong>\uff1a\u6253\u5f00\u4e0b\u8f7d\u7684.pkg\u6587\u4ef6\uff0c\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u8f93\u5165<code>python3<\/code>\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Linux<\/strong>\uff1a\u7531\u4e8e\u4e0d\u540cLinux\u53d1\u884c\u7248\u5b89\u88c5\u65b9\u6cd5\u7565\u6709\u4e0d\u540c\uff0c\u901a\u5e38\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e9b\u4f9d\u8d56\u5305\uff0c\u7136\u540e\u4f7f\u7528\u6e90\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1\u5b89\u88c5\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get update<\/p>\n<p>sudo apt-get install -y build-essential libssl-dev libffi-dev python3-dev<\/p>\n<p>wget https:\/\/www.python.org\/ftp\/python\/3.7.2\/Python-3.7.2.tgz<\/p>\n<p>tar xvf Python-3.7.2.tgz<\/p>\n<p>cd Python-3.7.2<\/p>\n<p>.\/configure --enable-optimizations<\/p>\n<p>make -j 8<\/p>\n<p>sudo make altinstall<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u4e0a\u8ff0\u6b65\u9aa4\u4f1a\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff0c\u89e3\u538b\u540e\u8fdb\u884c\u7f16\u8bd1\u548c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1Python\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u901a\u8fc7\u547d\u4ee4\u884c\u7a97\u53e3\uff08\u547d\u4ee4\u63d0\u793a\u7b26\u3001\u7ec8\u7aef\u7b49\uff09\u8f93\u5165<code>python3.7 --version<\/code>\uff0c\u5982\u679c\u8f93\u51fa\u663e\u793aPython 3.7.2\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5Python 3.7.2<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Homebrew\u5b89\u88c5\uff08macOS\uff09<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728macOS\u4e0a\u4f7f\u7528Homebrew\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b89\u88c5Python 3.7.2\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install pyenv<\/p>\n<p>pyenv install 3.7.2<\/p>\n<p>pyenv global 3.7.2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7<code>pyenv<\/code>\u5de5\u5177\u53ef\u4ee5\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f7f\u7528<code>python --version<\/code>\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u6fc0\u6d3b\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528apt-get\u5b89\u88c5\uff08Linux\uff09<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4e00\u4e9bLinux\u53d1\u884c\u7248\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u76f4\u63a5\u5b89\u88c5Python 3.7.2\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get update<\/p>\n<p>sudo apt-get install python3.7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4f9d\u8d56\u4e8e\u7cfb\u7edf\u7684\u5305\u7ba1\u7406\u5668\uff0c\u53ef\u80fd\u9700\u8981\u542f\u7528\u989d\u5916\u7684\u5305\u6e90\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528Anaconda\u5b89\u88c5Python 3.7.2<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Anaconda<\/strong><\/p>\n<\/p>\n<p><p>Anaconda\u662f\u4e00\u4e2a\u5f00\u6e90\u7684Python\u53d1\u884c\u7248\uff0c\u5305\u542b\u5927\u91cf\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u7684\u5e93\u3002\u9996\u5148\uff0c\u4e0b\u8f7dAnaconda\u7684\u5b89\u88c5\u5305\uff08<a href=\"https:\/\/www.anaconda.com\/products\/distribution%EF%BC%89%EF%BC%8C%E9%80%89%E6%8B%A9%E9%80%82%E5%90%88%E4%BD%A0%E7%B3%BB%E7%BB%9F%E7%9A%84%E7%89%88%E6%9C%AC%E3%80%82\">https:\/\/www.anaconda.com\/products\/distribution\uff09\uff0c\u9009\u62e9\u9002\u5408\u4f60\u7cfb\u7edf\u7684\u7248\u672c\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaPython 3.7.2\u73af\u5883<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8cAnaconda\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528conda\u547d\u4ee4\u521b\u5efa\u4e00\u4e2aPython 3.7.2\u7684\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda create -n py37 python=3.7.2<\/p>\n<p>conda activate py37<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u5728\u72ec\u7acb\u73af\u5883\u4e2d\u4f7f\u7528Python 3.7.2\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5230\u5176\u4ed6Python\u7248\u672c\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5b89\u88c5\u540e\u914d\u7f6e<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u81ea\u52a8\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u914d\u7f6e\u3002\u786e\u4fddPython\u7684\u5b89\u88c5\u8def\u5f84\u5df2\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684PATH\u53d8\u91cf\u4e2d\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u5728\u4efb\u4f55\u4f4d\u7f6e\u8c03\u7528Python\u547d\u4ee4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5pip<\/strong><\/p>\n<\/p>\n<p><p>pip\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u901a\u5e38\u968fPython\u4e00\u8d77\u5b89\u88c5\u3002\u53ef\u4ee5\u901a\u8fc7<code>pip --version<\/code>\u6765\u68c0\u67e5\u5b83\u662f\u5426\u5df2\u5b89\u88c5\u3002\u5982\u679c\u6ca1\u6709\uff0c\u53ef\u4ee5\u4e0b\u8f7dget-pip.py\u811a\u672c\u5e76\u8fd0\u884c<code>python get-pip.py<\/code>\u6765\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u5e38\u7528\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684\u5e93\uff0c\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install numpy<\/p>\n<p>pip install pandas<\/p>\n<p>pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5e93\u5bf9\u4e8e\u6570\u636e\u5206\u6790\u3001\u79d1\u5b66\u8ba1\u7b97\u3001\u53ef\u89c6\u5316\u7b49\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u51b2\u7a81<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u540c\u4e00\u7cfb\u7edf\u4e2d\u5b89\u88c5\u591a\u4e2aPython\u7248\u672c\u53ef\u80fd\u5bfc\u81f4\u51b2\u7a81\u3002\u4f7f\u7528pyenv\u6216conda\u53ef\u4ee5\u8f7b\u677e\u7ba1\u7406\u591a\u4e2a\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f9d\u8d56\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u7279\u522b\u662f\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u7f16\u8bd1\u5b89\u88c5Python\u53ef\u80fd\u4f1a\u9047\u5230\u4f9d\u8d56\u95ee\u9898\u3002\u786e\u4fdd\u7cfb\u7edf\u66f4\u65b0\u5e76\u5b89\u88c5\u5fc5\u8981\u7684\u5f00\u53d1\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u7cfb\u7edf\u4e0a\uff0c\u53ef\u80fd\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u624d\u80fd\u5b89\u88c5Python\u3002\u4f7f\u7528sudo\u547d\u4ee4\u53ef\u4ee5\u89e3\u51b3\u6743\u9650\u4e0d\u8db3\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u987a\u5229\u5b89\u88c5Python 3.7.2\u3002\u6839\u636e\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u65b9\u5f0f\uff0c\u786e\u4fdd\u5b89\u88c5\u8fc7\u7a0b\u987a\u5229\uff0c\u5e76\u5728\u5b89\u88c5\u540e\u8fdb\u884c\u5fc5\u8981\u7684\u914d\u7f6e\u548c\u5e93\u5b89\u88c5\uff0c\u4ee5\u4fbf\u5145\u5206\u5229\u7528Python\u8fdb\u884c\u5f00\u53d1\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684Python\u5b89\u88c5\u5305\uff1f<\/strong><br \/>\u5728\u5b89\u88c5Python 3.7.2\u65f6\uff0c\u60a8\u9700\u8981\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u5305\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u53ef\u4ee5\u4e0b\u8f7d.exe\u5b89\u88c5\u7a0b\u5e8f\uff1bLinux\u7528\u6237\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u8fdb\u884c\u5b89\u88c5\uff0c\u4f8b\u5982\u4f7f\u7528apt\u6216yum\uff1bMac\u7528\u6237\u5219\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528Homebrew\u6216\u76f4\u63a5\u4e0b\u8f7d.pkg\u6587\u4ef6\u3002\u786e\u4fdd\u9009\u62e9\u4e0e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u67b6\u6784\uff0832\u4f4d\u621664\u4f4d\uff09\u76f8\u5339\u914d\u7684\u7248\u672c\u3002<\/p>\n<p><strong>\u5b89\u88c5Python 3.7.2\u540e\uff0c\u5982\u4f55\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002\u53ea\u9700\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>python3 --version<\/code>\u6216<code>python --version<\/code>\uff0c\u5982\u679c\u770b\u5230\u8fd4\u56de\u7684\u7248\u672c\u53f7\u4e3a3.7.2\uff0c\u5219\u8868\u793a\u5b89\u88c5\u6210\u529f\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u8fd0\u884c<code>python3<\/code>\u8fdb\u5165Python\u4ea4\u4e92\u5f0f\u73af\u5883\uff0c\u786e\u8ba4\u5176\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p><strong>\u5b89\u88c5Python 3.7.2\u540e\uff0c\u5982\u4f55\u7ba1\u7406Python\u5305\u548c\u5e93\uff1f<\/strong><br \/>\u5728\u5b89\u88c5Python 3.7.2\u540e\uff0c\u5efa\u8bae\u4f7f\u7528pip\u6765\u7ba1\u7406Python\u5305\u548c\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>pip install \u5305\u540d<\/code>\u6765\u5b89\u88c5\u6240\u9700\u7684\u5e93\u3002\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>pip list<\/code>\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5e93\uff0c\u4ee5\u53ca\u4f7f\u7528<code>pip uninstall \u5305\u540d<\/code>\u6765\u5378\u8f7d\u4e0d\u9700\u8981\u7684\u5e93\u3002\u6b64\u5916\uff0c\u521b\u5efa\u865a\u62df\u73af\u5883\uff08\u4f7f\u7528<code>venv<\/code>\u6a21\u5757\uff09\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5728\u4e0d\u540c\u9879\u76ee\u4e2d\u7ba1\u7406\u4f9d\u8d56\uff0c\u907f\u514d\u5e93\u4e4b\u95f4\u7684\u51b2\u7a81\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5b89\u88c5Python 3.7.2\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528Python\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\u5305\u3001\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5982Ho [&hellip;]","protected":false},"author":3,"featured_media":1013628,"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\/1013616"}],"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=1013616"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1013616\/revisions"}],"predecessor-version":[{"id":1013629,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1013616\/revisions\/1013629"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1013628"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1013616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1013616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1013616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}