{"id":1000021,"date":"2024-12-27T09:46:23","date_gmt":"2024-12-27T01:46:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1000021.html"},"modified":"2024-12-27T09:46:30","modified_gmt":"2024-12-27T01:46:30","slug":"mac%e5%a6%82%e4%bd%95%e5%85%8d%e8%b4%b9%e5%ae%89%e8%a3%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1000021.html","title":{"rendered":"mac\u5982\u4f55\u514d\u8d39\u5b89\u88c5python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074812\/51fcfb40-e1d5-432a-a87f-e585ef02fd10.webp\" alt=\"mac\u5982\u4f55\u514d\u8d39\u5b89\u88c5python\" \/><\/p>\n<p><p> \u5728macOS\u4e0a\u514d\u8d39\u5b89\u88c5Python\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<strong>\u4f7f\u7528Homebrew\u3001\u76f4\u63a5\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\u3001\u4f7f\u7528Anaconda<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Homebrew\u662f\u4e00\u79cd\u975e\u5e38\u4fbf\u6377\u4e14\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406Python\u53ca\u5176\u76f8\u5173\u8f6f\u4ef6\u5305\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Homebrew\u6765\u5b89\u88c5Python\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528Homebrew\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>Homebrew\u662fmacOS\u4e0a\u7684\u4e00\u4e2a\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u548c\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u8981\u4f7f\u7528Homebrew\u5b89\u88c5Python\uff0c\u9996\u5148\u9700\u8981\u786e\u4fddHomebrew\u5df2\u7ecf\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Homebrew<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5c1a\u672a\u5b89\u88c5Homebrew\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5728\u7ec8\u7aef\u4e2d\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<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>brew --version<\/code>\u6765\u68c0\u67e5\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Homebrew\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\uff0c\u5e76\u4e14\u4f1a\u81ea\u52a8\u5b89\u88c5<code>pip<\/code>\uff08Python\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff09\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u5b8c\u6210\u5b89\u88c5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u663e\u793a\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u76f4\u63a5\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbf\u95eePython\u5b98\u7f51<\/strong><\/p>\n<\/p>\n<p><p>\u524d\u5f80Python\u7684\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.python.org\/%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%E7%94%A8%E4%BA%8EmacOS%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">https:\/\/www.python.org\/\uff0c\u5728\u4e0b\u8f7d\u9875\u9762\u9009\u62e9\u9002\u7528\u4e8emacOS\u7684\u5b89\u88c5\u5305\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0b\u8f7d\u548c\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u5e76\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u8fdb\u884c\u64cd\u4f5c\u3002\u901a\u5e38\u53ea\u9700\u8981\u70b9\u51fb\u51e0\u6b21\u201c\u7ee7\u7eed\u201d\u6309\u94ae\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4f1a\u975e\u5e38\u7b80\u5355\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u540c\u6837\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528Anaconda\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>Anaconda\u662f\u4e00\u6b3e\u9762\u5411\u79d1\u5b66\u8ba1\u7b97\u7684Python\u53d1\u884c\u7248\uff0c\u96c6\u6210\u4e86\u4f17\u591a\u79d1\u5b66\u8ba1\u7b97\u7684\u5e93\u548c\u5de5\u5177\uff0c\u975e\u5e38\u9002\u5408\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7684\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dAnaconda<\/strong><\/p>\n<\/p>\n<p><p>\u524d\u5f80Anaconda\u7684\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.anaconda.com\/%EF%BC%8C%E4%B8%8B%E8%BD%BD%E9%80%82%E7%94%A8%E4%BA%8EmacOS%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">https:\/\/www.anaconda.com\/\uff0c\u4e0b\u8f7d\u9002\u7528\u4e8emacOS\u7684\u5b89\u88c5\u5305\u3002<\/a><\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Anaconda<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0cAnaconda\u5c06\u81ea\u52a8\u8bbe\u7f6ePython\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1Anaconda\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u4e5f\u53ef\u4ee5\u68c0\u67e5Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u7ba1\u7406Python\u7248\u672c<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5728macOS\u4e0a\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u7684Python\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528<code>pyenv<\/code>\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5pyenv<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u901a\u8fc7Homebrew\u5b89\u88c5<code>pyenv<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install pyenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6epyenv<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9700\u8981\u5728shell\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff0c\u4ee5\u4fbf\u5728\u542f\u52a8\u7ec8\u7aef\u65f6\u81ea\u52a8\u52a0\u8f7d<code>pyenv<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">echo &#39;eval &quot;$(pyenv init --path)&quot;&#39; &gt;&gt; ~\/.zprofile<\/p>\n<p>echo &#39;eval &quot;$(pyenv init -)&quot;&#39; &gt;&gt; ~\/.zshrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source ~\/.zprofile<\/p>\n<p>source ~\/.zshrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u4e0d\u540c\u7248\u672c\u7684Python<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>pyenv<\/code>\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684Python\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv install 3.9.7<\/p>\n<p>pyenv install 3.8.10<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5207\u6362Python\u7248\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5207\u6362Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv global 3.9.7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005\u4e3a\u7279\u5b9a\u9879\u76ee\u8bbe\u7f6ePython\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv local 3.8.10<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u5982\u6743\u9650\u95ee\u9898\u3001\u8def\u5f84\u914d\u7f6e\u95ee\u9898\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u6743\u9650\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528<code>sudo<\/code>\u547d\u4ee4\u63d0\u5347\u6743\u9650\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo brew install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f46\u8981\u6ce8\u610f\uff0c\u4f7f\u7528<code>sudo<\/code>\u5b89\u88c5\u8f6f\u4ef6\u5305\u65f6\u9700\u8981\u8f93\u5165\u7ba1\u7406\u5458\u5bc6\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8def\u5f84\u914d\u7f6e\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python\u540e\uff0c\u5982\u679c\u5728\u7ec8\u7aef\u4e2d\u65e0\u6cd5\u627e\u5230<code>python3<\/code>\u547d\u4ee4\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u8def\u5f84\u672a\u6b63\u786e\u914d\u7f6e\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u624b\u52a8\u5c06Python\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export PATH=&quot;\/usr\/local\/opt\/python\/libexec\/bin:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u53ef\u4ee5\u5c06\u4e0a\u8ff0\u547d\u4ee4\u6dfb\u52a0\u5230shell\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u6bcf\u6b21\u542f\u52a8\u7ec8\u7aef\u65f6\u81ea\u52a8\u52a0\u8f7d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f6f\u4ef6\u5305\u7ba1\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pip<\/code>\u6765\u7ba1\u7406Python\u8f6f\u4ef6\u5305\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Python\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d<code>package_name<\/code>\u662f\u8981\u5b89\u88c5\u7684\u5e93\u7684\u540d\u79f0\u3002\u4f8b\u5982\uff0c\u8981\u5b89\u88c5<code>requests<\/code>\u5e93\uff0c\u53ef\u4ee5\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u66f4\u65b0Python\u548cpip<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7Homebrew\u66f4\u65b0Python\u5230\u6700\u65b0\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew upgrade python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u53ef\u4ee5\u66f4\u65b0<code>pip<\/code>\u5230\u6700\u65b0\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 -m pip install --upgrade pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0c\u5728macOS\u4e0a\u5b89\u88c5Python\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5176\u4e2d\u4f7f\u7528Homebrew\u662f\u6700\u4e3a\u63a8\u8350\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406Python\u7248\u672c\u548c\u8f6f\u4ef6\u5305\u3002\u540c\u65f6\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528<code>pyenv<\/code>\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u4e5f\u662f\u4e00\u79cd\u975e\u5e38\u6709\u7528\u7684\u6280\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u4e0d\u540c\u7684\u9879\u76ee\u4e2d\u7075\u6d3b\u5207\u6362Python\u7248\u672c\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\u548c\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728macOS\u4e0a\u642d\u5efa\u8d77\u81ea\u5df1\u7684Python\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Mac\u4e0a\u83b7\u53d6Python\u7684\u6700\u65b0\u7248\u672c\uff1f<\/strong><br \/>\u5728Mac\u4e0a\u5b89\u88c5Python\u7684\u6700\u4f73\u65b9\u5f0f\u662f\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\uff0c\u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\u9009\u62e9\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u672c\u8fdb\u884c\u4e0b\u8f7d\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u5305\uff0c\u6309\u7167\u6307\u5f15\u5b8c\u6210\u5b89\u88c5\uff0c\u6574\u4e2a\u8fc7\u7a0b\u7b80\u5355\u660e\u4e86\u3002<\/p>\n<p><strong>Mac\u4e0a\u5b89\u88c5Python\u540e\u5982\u4f55\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\uff0c\u8f93\u5165\u547d\u4ee4<code>python3 --version<\/code>\u6216<code>python --version<\/code>\u6765\u68c0\u67e5Python\u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\u3002\u5982\u679c\u663e\u793a\u51fa\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u4f7f\u7528Homebrew\u6765\u5b89\u88c5Python\u5417\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\uff0cHomebrew\u662fMac\u4e0a\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5305\u7ba1\u7406\u5de5\u5177\u3002\u60a8\u53ea\u9700\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>brew install python<\/code>\uff0cHomebrew\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u540c\u6837\u7684\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b89\u88c5\u72b6\u6001\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728macOS\u4e0a\u514d\u8d39\u5b89\u88c5Python\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528Homebrew\u3001\u76f4\u63a5\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5 [&hellip;]","protected":false},"author":3,"featured_media":1000037,"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\/1000021"}],"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=1000021"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1000021\/revisions"}],"predecessor-version":[{"id":1000040,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1000021\/revisions\/1000040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1000037"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1000021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1000021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1000021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}