{"id":954337,"date":"2024-12-27T01:55:44","date_gmt":"2024-12-26T17:55:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/954337.html"},"modified":"2024-12-27T01:55:46","modified_gmt":"2024-12-26T17:55:46","slug":"mac%e7%b3%bb%e7%bb%9f%e5%a6%82%e4%bd%95%e4%b8%8b%e8%bd%bdpython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/954337.html","title":{"rendered":"mac\u7cfb\u7edf\u5982\u4f55\u4e0b\u8f7dpython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094603\/1f50a392-d513-4032-8413-b87553393361.webp\" alt=\"mac\u7cfb\u7edf\u5982\u4f55\u4e0b\u8f7dpython\" \/><\/p>\n<p><p> <strong>\u5728mac\u7cfb\u7edf\u4e0a\u4e0b\u8f7dPython\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b8c\u6210\uff0c\u5305\u62ec\u4f7f\u7528Homebrew\u3001\u76f4\u63a5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u3001\u901a\u8fc7Anaconda\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528Homebrew\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u65b9\u4fbf\u7684\u65b9\u5f0f\u3002Homebrew\u662fmacOS\u4e0a\u7684\u4e00\u6b3e\u8f6f\u4ef6\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u8f7b\u677e\u5b89\u88c5\u3001\u66f4\u65b0\u548c\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Homebrew\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528Homebrew\u5b89\u88c5Python<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Homebrew<\/strong><\/p>\n<\/p>\n<p><p>\u5728macOS\u4e0a\u4f7f\u7528Homebrew\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u7cfb\u7edf\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86Homebrew\u3002\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5Homebrew\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>\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4\u540e\uff0cHomebrew\u5c06\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1Homebrew\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew -v<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u770b\u5230Homebrew\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Homebrew\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8cHomebrew\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\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>\u8be5\u547d\u4ee4\u5c06\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u7684\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\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>\u5982\u679c\u770b\u5230Python\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u5e38\uff0cHomebrew\u4f1a\u81ea\u52a8\u5c06Python\u7684\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u5982\u679c\u6ca1\u6709\u81ea\u52a8\u6dfb\u52a0\uff0c\u53ef\u4ee5\u624b\u52a8\u5c06Python\u7684\u8def\u5f84\u6dfb\u52a0\u5230<code>.bash_profile<\/code>\u6216<code>.zshrc<\/code>\u4e2d\uff0c\u4ee5\u786e\u4fdd\u53ef\u4ee5\u5728\u4efb\u4f55\u4f4d\u7f6e\u4f7f\u7528Python\u547d\u4ee4\u3002\u7f16\u8f91\u6587\u4ef6\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u884c\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>\u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\u540e\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source ~\/.bash_profile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.python.org\/%EF%BC%8C%E5%9C%A8%E5%AF%BC%E8%88%AA%E6%A0%8F%E4%B8%AD%E9%80%89%E6%8B%A9%E2%80%9CDownloads%E2%80%9D%E9%80%89%E9%A1%B9%EF%BC%8C%E7%84%B6%E5%90%8E%E7%82%B9%E5%87%BB%E2%80%9CDownload\">https:\/\/www.python.org\/\uff0c\u5728\u5bfc\u822a\u680f\u4e2d\u9009\u62e9\u201cDownloads\u201d\u9009\u9879\uff0c\u7136\u540e\u70b9\u51fb\u201cDownload<\/a> Python 3.x.x\u201d\u6309\u94ae\uff0c\u4e0b\u8f7d\u9002\u7528\u4e8emacOS\u7684\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u5305\u5e76\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u7684\u6307\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u662f\u5426\u5b89\u88c5\u9644\u52a0\u5de5\u5177\uff0c\u5982pip\u548cIDLE\u3002\u901a\u5e38\u5efa\u8bae\u5c06\u8fd9\u4e9b\u5de5\u5177\u4e00\u540c\u5b89\u88c5\uff0c\u4ee5\u4fbf\u4e8e\u540e\u7eed\u7684Python\u5f00\u53d1\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\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9a8c\u8bc1Python\u5b89\u88c5\u662f\u5426\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>\u5982\u679c\u770b\u5230Python\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528Anaconda\u5b89\u88c5Python<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7dAnaconda<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95eeAnaconda\u7684\u5b98\u65b9\u7f51\u7ad9\uff1a<a href=\"https:\/\/www.anaconda.com\/%EF%BC%8C%E5%9C%A8%E2%80%9CProducts%E2%80%9D%E9%A1%B5%E9%9D%A2%E4%B8%AD%E9%80%89%E6%8B%A9%E2%80%9CIndividual\">https:\/\/www.anaconda.com\/\uff0c\u5728\u201cProducts\u201d\u9875\u9762\u4e2d\u9009\u62e9\u201cIndividual<\/a> Edition\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201cDownload\u201d\u6309\u94ae\uff0c\u4e0b\u8f7d\u9002\u7528\u4e8emacOS\u7684Anaconda\u5b89\u88c5\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Anaconda<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u53cc\u51fb\u5b89\u88c5\u5305\u5e76\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u7684\u6307\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u8be2\u95ee\u662f\u5426\u5c06Anaconda\u7684\u8def\u5f84\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u5efa\u8bae\u9009\u62e9\u201c\u662f\u201d\uff0c\u4ee5\u4fbf\u4e8e\u5728\u7ec8\u7aef\u4e2d\u76f4\u63a5\u4f7f\u7528Anaconda\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\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9a8c\u8bc1Anaconda\u5b89\u88c5\u662f\u5426\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>\u5982\u679c\u770b\u5230Conda\u7684\u7248\u672c\u4fe1\u606f\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002\u901a\u8fc7Anaconda\u5b89\u88c5\u7684Python\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u7248\u672c\u4fe1\u606f\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\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c<\/p>\n<\/p>\n<p><p>\u5728macOS\u4e0a\u5b89\u88c5Python\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u591a\u4e2a\u7248\u672c\u7684Python\u5171\u5b58\u7684\u60c5\u51b5\uff0c\u5c24\u5176\u662f\u5728\u4f7f\u7528Homebrew\u6216Anaconda\u7684\u60c5\u51b5\u4e0b\u3002\u9009\u62e9\u5408\u9002\u7684Python\u7248\u672c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u5b8c\u6210\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u67e5\u770b\u5df2\u5b89\u88c5\u7684Python\u7248\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>pyenv<\/code>\u5de5\u5177\u6765\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u3002\u9996\u5148\u9700\u8981\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<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv versions<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u9ed8\u8ba4Python\u7248\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5c06\u67d0\u4e2a\u7279\u5b9a\u7248\u672c\u7684Python\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv global 3.x.x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c06<code>3.x.x<\/code>\u66ff\u6362\u4e3a\u4f60\u5e0c\u671b\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7684Python\u7248\u672c\u3002\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u547d\u4ee4\u5e94\u8fd4\u56de\u4f60\u8bbe\u7f6e\u7684\u9ed8\u8ba4Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u65e0\u6cd5\u627e\u5230Python\u547d\u4ee4<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5b89\u88c5Python\u540e\u5728\u7ec8\u7aef\u4e2d\u65e0\u6cd5\u627e\u5230Python\u547d\u4ee4\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u73af\u5883\u53d8\u91cf\u672a\u6b63\u786e\u914d\u7f6e\u3002\u53ef\u4ee5\u5c1d\u8bd5\u5c06Python\u7684\u8def\u5f84\u624b\u52a8\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u6216\u8005\u91cd\u65b0\u5b89\u88c5\u5e76\u9009\u62e9\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python\u7248\u672c\u4e0d\u5339\u914d<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230Python\u7248\u672c\u4e0d\u5339\u914d\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pyenv<\/code>\u5de5\u5177\u6765\u7ba1\u7406\u548c\u5207\u6362\u4e0d\u540c\u7684Python\u7248\u672c\uff0c\u4ee5\u786e\u4fdd\u4f7f\u7528\u5408\u9002\u7684\u7248\u672c\u8fdb\u884c\u5f00\u53d1\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Homebrew\u6216Python\u65f6\uff0c\u5982\u679c\u9047\u5230\u6743\u9650\u4e0d\u8db3\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u5728\u547d\u4ee4\u524d\u52a0\u4e0a<code>sudo<\/code>\u4ee5\u63d0\u5347\u6743\u9650\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>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528<code>sudo<\/code>\u65f6\u9700\u8981\u8f93\u5165\u7ba1\u7406\u5458\u5bc6\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u5728macOS\u7cfb\u7edf\u4e0a\u6210\u529f\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\uff0c\u5e76\u89e3\u51b3\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u3002\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u65b9\u5f0f\u548c\u7248\u672c\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u8ba9Python\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u53d8\u5f97\u66f4\u52a0\u9ad8\u6548\u548c\u4fbf\u6377\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Mac\u4e0a\u4e0b\u8f7dPython\u7684\u6700\u4f73\u65b9\u5f0f\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728Mac\u7cfb\u7edf\u4e0a\u4e0b\u8f7dPython\uff0c\u63a8\u8350\u4f7f\u7528\u5b98\u65b9\u7684Python\u7f51\u7ad9\uff08python.org\uff09\u3002\u5728\u9875\u9762\u4e0a\uff0c\u4f60\u53ef\u4ee5\u627e\u5230\u9002\u7528\u4e8emacOS\u7684\u6700\u65b0\u7248\u672c\uff0c\u5e76\u6309\u7167\u6307\u793a\u8fdb\u884c\u4e0b\u8f7d\u548c\u5b89\u88c5\u3002\u6b64\u5916\uff0c\u4f7f\u7528Homebrew\u5305\u7ba1\u7406\u5668\u4e5f\u662f\u4e00\u4e2a\u65b9\u4fbf\u7684\u9009\u62e9\uff0c\u53ea\u9700\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>brew install python<\/code>\u5373\u53ef\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u5728Mac\u4e0a\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u7684Python\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0cMac\u5141\u8bb8\u4f60\u5b89\u88c5\u591a\u4e2aPython\u7248\u672c\u3002\u4f7f\u7528pyenv\u53ef\u4ee5\u8f7b\u677e\u7ba1\u7406\u4e0d\u540c\u7248\u672c\u7684Python\uff0c\u8fd9\u6837\u4f60\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u9700\u6c42\u5207\u6362\u4e0d\u540c\u7684\u73af\u5883\u3002\u5728\u7ec8\u7aef\u4e2d\u5b89\u88c5pyenv\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<code>pyenv install &lt;version&gt;<\/code>\u6765\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684Python\u3002<\/p>\n<p><strong>\u5b89\u88c5Python\u540e\u6211\u9700\u8981\u505a\u4ec0\u4e48\u914d\u7f6e\u5417\uff1f<\/strong><br \/>\u5b89\u88c5Python\u540e\uff0c\u901a\u5e38\u9700\u8981\u786e\u4fdd\u5c06Python\u7684\u5b89\u88c5\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91\u4f60\u7684shell\u914d\u7f6e\u6587\u4ef6\uff08\u4f8b\u5982.zshrc\u6216.bash_profile\uff09\u6765\u5b8c\u6210\u3002\u6b64\u5916\uff0c\u5efa\u8bae\u5b89\u88c5pip\uff08Python\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff09\uff0c\u4ee5\u4fbf\u8f7b\u677e\u7ba1\u7406\u548c\u5b89\u88c5Python\u5e93\u548c\u4f9d\u8d56\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728mac\u7cfb\u7edf\u4e0a\u4e0b\u8f7dPython\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b8c\u6210\uff0c\u5305\u62ec\u4f7f\u7528Homebrew\u3001\u76f4\u63a5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u3001 [&hellip;]","protected":false},"author":3,"featured_media":954345,"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\/954337"}],"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=954337"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/954337\/revisions"}],"predecessor-version":[{"id":954346,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/954337\/revisions\/954346"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/954345"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=954337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=954337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=954337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}