{"id":970368,"date":"2024-12-27T05:25:30","date_gmt":"2024-12-26T21:25:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/970368.html"},"modified":"2024-12-27T05:25:32","modified_gmt":"2024-12-26T21:25:32","slug":"%e5%a6%82%e4%bd%95%e6%b5%8b%e8%af%95%e6%98%af%e5%90%a6%e5%ae%89%e8%a3%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/970368.html","title":{"rendered":"\u5982\u4f55\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24193731\/9f1398df-9012-4054-935b-d80366c673fa.webp\" alt=\"\u5982\u4f55\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5python\" \/><\/p>\n<p><p> <strong>\u8981\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u4e86Python\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u3001\u8f93\u5165python\u6216python3\u547d\u4ee4\u3001\u67e5\u770bPython\u7248\u672c\u4fe1\u606f\u662f\u5426\u663e\u793a\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u901a\u8fc7\u547d\u4ee4\u884c\u67e5\u770bPython\u7248\u672c<\/strong>\u662f\u6700\u5e38\u7528\u4e14\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u8bf4\u660e\uff1a<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u547d\u4ee4\u884c\u67e5\u770bPython\u7248\u672c\uff0c\u53ef\u4ee5\u5feb\u901f\u786e\u8ba4Python\u662f\u5426\u5df2\u5b89\u88c5\u5728\u60a8\u7684\u7cfb\u7edf\u4e2d\u3002\u65e0\u8bba\u662f\u5728Windows\u3001macOS\u8fd8\u662fLinux\u7cfb\u7edf\u4e0a\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\uff08\u5982\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff09\u8fdb\u884c\u6d4b\u8bd5\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a  <\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08macOS\/Linux\uff09\u3002<\/li>\n<li>\u8f93\u5165\u547d\u4ee4 <code>python --version<\/code> \u6216 <code>python3 --version<\/code>\u3002<\/li>\n<li>\u5982\u679c\u5b89\u88c5\u4e86Python\uff0c\u5c06\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e8e <code>Python 3.x.x<\/code> \u7684\u7248\u672c\u4fe1\u606f\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u5c06\u4f1a\u63d0\u793a\u547d\u4ee4\u672a\u627e\u5230\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5feb\u901f\u786e\u5b9aPython\u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\u5728\u60a8\u7684\u8ba1\u7b97\u673a\u4e0a\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u786e\u8ba4\u5b89\u88c5\u7684\u7248\u672c\u662f\u5426\u7b26\u5408\u60a8\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u4e00\u3001\u5728WINDOWS\u7cfb\u7edf\u4e2d\u6d4b\u8bd5<\/p>\n<\/p>\n<p><p>\u5728Windows\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6d4b\u8bd5Python\u7684\u5b89\u88c5\u60c5\u51b5\u4e3b\u8981\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u8fdb\u884c\u64cd\u4f5c\u3002Windows\u7cfb\u7edf\u81ea\u5e26\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u53ef\u4ee5\u5feb\u901f\u5e2e\u52a9\u7528\u6237\u6d4b\u8bd5\u8f6f\u4ef6\u7684\u5b89\u88c5\u60c5\u51b5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26<\/strong><\/p>\n<\/p>\n<p><p>\u5728Windows\u4e2d\uff0c\u6309\u4e0b\u201cWin + R\u201d\u952e\u6253\u5f00\u8fd0\u884c\u7a97\u53e3\uff0c\u7136\u540e\u8f93\u5165\u201ccmd\u201d\uff0c\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u5373\u53ef\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u5165Python\u547d\u4ee4<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u4e2d\uff0c\u8f93\u5165 <code>python --version<\/code> \u6216 <code>python3 --version<\/code>\uff0c\u6309\u4e0b\u56de\u8f66\u952e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u7ed3\u679c<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679cPython\u5df2\u5b89\u88c5\uff0c\u60a8\u5c06\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e8e <code>Python 3.9.1<\/code> \u7684\u4fe1\u606f\u3002\u5982\u679c\u663e\u793a\u201cpython \u4e0d\u662f\u5185\u90e8\u6216\u5916\u90e8\u547d\u4ee4\uff0c\u4e5f\u4e0d\u662f\u53ef\u8fd0\u884c\u7684\u7a0b\u5e8f\u6216\u6279\u5904\u7406\u6587\u4ef6\u201d\uff0c\u5219\u8bf4\u660ePython\u672a\u5b89\u88c5\u6216\u8005\u73af\u5883\u53d8\u91cf\u672a\u914d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u73af\u5883\u53d8\u91cf\u68c0\u67e5<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u60a8\u786e\u8ba4\u5b89\u88c5\u4e86Python\u4f46\u4f9d\u7136\u65e0\u6cd5\u901a\u8fc7\u547d\u4ee4\u63d0\u793a\u7b26\u8bc6\u522b\uff0c\u53ef\u4ee5\u68c0\u67e5\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u3002\u786e\u4fddPython\u7684\u5b89\u88c5\u8def\u5f84\u5df2\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684Path\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5728MACOS\u7cfb\u7edf\u4e2d\u6d4b\u8bd5<\/p>\n<\/p>\n<p><p>macOS\u7cfb\u7edf\u81ea\u5e26\u7ec8\u7aef\u5e94\u7528\uff0c\u901a\u8fc7\u7ec8\u7aef\u53ef\u4ee5\u8f7b\u677e\u68c0\u67e5Python\u7684\u5b89\u88c5\u72b6\u6001\u3002macOS\u901a\u5e38\u9884\u88c5\u4e86Python 2.x\u7248\u672c\uff0c\u4f46\u5efa\u8bae\u4f7f\u7528Python 3.x\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u7ec8\u7aef<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5feb\u6377\u952e\u201cCommand + Space\u201d\u6253\u5f00Spotlight\u641c\u7d22\uff0c\u8f93\u5165\u201cTerminal\u201d\u5e76\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u5165Python\u547d\u4ee4<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165 <code>python3 --version<\/code>\uff08macOS\u4e0a\u901a\u5e38\u9700\u8981\u6307\u5b9aPython 3\u7248\u672c\uff09\uff0c\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u7ed3\u679c<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679cPython 3.x\u5df2\u5b89\u88c5\uff0c\u60a8\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e8e <code>Python 3.9.1<\/code> \u7684\u4fe1\u606f\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5Python 3\uff0c\u7cfb\u7edf\u53ef\u80fd\u4f1a\u663e\u793a\u547d\u4ee4\u672a\u627e\u5230\u6216\u9ed8\u8ba4\u663e\u793aPython 2.x\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528Homebrew\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u672a\u5b89\u88c5Python 3\uff0c\u53ef\u4ee5\u4f7f\u7528Homebrew\u8fdb\u884c\u5b89\u88c5\u3002\u9996\u5148\u786e\u4fddHomebrew\u5df2\u5b89\u88c5\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165 <code>brew install python<\/code> \u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5728LINUX\u7cfb\u7edf\u4e2d\u6d4b\u8bd5<\/p>\n<\/p>\n<p><p>Linux\u7cfb\u7edf\u56e0\u53d1\u884c\u7248\u4e0d\u540c\uff0cPython\u7684\u9884\u88c5\u60c5\u51b5\u4e5f\u6709\u6240\u4e0d\u540c\u3002\u5e38\u89c1\u7684\u53d1\u884c\u7248\u5982Ubuntu\u3001Fedora\u901a\u5e38\u4f1a\u9884\u88c5Python\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u7ec8\u7aef<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u684c\u9762\u73af\u5883\u4e2d\uff0c\u4f7f\u7528\u5feb\u6377\u952e\u201cCtrl + Alt + T\u201d\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u5165Python\u547d\u4ee4<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165 <code>python3 --version<\/code> \u6216 <code>python --version<\/code>\uff0c\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u7ed3\u679c<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679cPython 3.x\u5df2\u5b89\u88c5\uff0c\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u4e8e <code>Python 3.8.5<\/code> \u7684\u4fe1\u606f\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff08\u5982apt\u3001yum\uff09\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Python<\/strong><\/p>\n<\/p>\n<p><p>\u5728Ubuntu\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4 <code>sudo apt update<\/code> \u548c <code>sudo apt install python3<\/code> \u6765\u5b89\u88c5Python 3\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528\u811a\u672c\u6d4b\u8bd5Python\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u67e5\u770b\u7248\u672c\u4fe1\u606f\uff0c\u60a8\u4e5f\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u7b80\u5355\u7684Python\u811a\u672c\u6765\u6d4b\u8bd5Python\u7684\u5b89\u88c5\u72b6\u6001\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199\u6d4b\u8bd5\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5f00\u6587\u672c\u7f16\u8f91\u5668\uff0c\u7f16\u5199\u4ee5\u4e0bPython\u811a\u672c\u5e76\u4fdd\u5b58\u4e3a <code>test_python.py<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>print(&quot;Python version&quot;)<\/p>\n<p>print(sys.version)<\/p>\n<p>print(&quot;Version info.&quot;)<\/p>\n<p>print(sys.version_info)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u4e2d\uff0c\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u7136\u540e\u8fd0\u884c\u547d\u4ee4 <code>python test_python.py<\/code> \u6216 <code>python3 test_python.py<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u8f93\u51fa<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679cPython\u5b89\u88c5\u6b63\u786e\uff0c\u60a8\u5c06\u4f1a\u770b\u5230Python\u7248\u672c\u548c\u8be6\u7ec6\u7684\u7248\u672c\u4fe1\u606f\u8f93\u51fa\u3002\u5982\u679c\u811a\u672c\u65e0\u6cd5\u8fd0\u884c\uff0c\u5219\u8bf4\u660ePython\u672a\u6b63\u786e\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u786e\u8ba4Python\u5b89\u88c5\u8def\u5f84<\/p>\n<\/p>\n<p><p>\u786e\u8ba4Python\u7684\u5b89\u88c5\u8def\u5f84\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u5224\u65adPython\u662f\u5426\u6b63\u786e\u5b89\u88c5\u5e76\u914d\u7f6e\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528where\u547d\u4ee4\uff08Windows\uff09<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165 <code>where python<\/code> \u6216 <code>where python3<\/code>\uff0c\u67e5\u770bPython\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528which\u547d\u4ee4\uff08macOS\/Linux\uff09<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165 <code>which python3<\/code>\uff0c\u67e5\u770bPython 3\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u8def\u5f84\u662f\u5426\u6b63\u786e<\/strong><\/p>\n<\/p>\n<p><p>\u786e\u8ba4\u8fd4\u56de\u7684\u8def\u5f84\u662f\u60a8\u5b89\u88c5Python\u65f6\u9009\u62e9\u7684\u8def\u5f84\u3002\u5982\u679c\u8def\u5f84\u4e0d\u6b63\u786e\uff0c\u53ef\u80fd\u9700\u8981\u91cd\u65b0\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u6216\u91cd\u65b0\u5b89\u88c5Python\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u4f7f\u7528\u56fe\u5f62\u5316\u5de5\u5177\u68c0\u67e5<\/p>\n<\/p>\n<p><p>\u6709\u4e9b\u7528\u6237\u53ef\u80fd\u4e0d\u719f\u6089\u547d\u4ee4\u884c\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u56fe\u5f62\u5316\u5de5\u5177\u6765\u68c0\u67e5Python\u7684\u5b89\u88c5\u72b6\u6001\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Anaconda Navigator<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5b89\u88c5\u4e86Anaconda\uff0c\u53ef\u4ee5\u901a\u8fc7Anaconda Navigator\u67e5\u770bPython\u7684\u5b89\u88c5\u72b6\u6001\u548c\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python IDE<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001Visual Studio Code\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\u7684\u8bbe\u7f6e\u754c\u9762\u67e5\u770bPython\u89e3\u91ca\u5668\u7684\u8def\u5f84\u548c\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u5176\u4ed6\u68c0\u6d4b\u65b9\u5f0f<\/p>\n<\/p>\n<p><p>\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u60a8\u786e\u8ba4Python\u7684\u5b89\u88c5\u72b6\u6001\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u67e5\u770b\u7cfb\u7edf\u8f6f\u4ef6\u7ba1\u7406\u5668<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4e00\u4e9bLinux\u53d1\u884c\u7248\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7cfb\u7edf\u7684\u8f6f\u4ef6\u7ba1\u7406\u5668\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u662f\u5426\u5305\u542bPython\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u6d4f\u89c8\u5668\u63d2\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u6709\u4e9b\u6d4f\u89c8\u5668\u63d2\u4ef6\u6216\u6269\u5c55\u53ef\u4ee5\u5e2e\u52a9\u68c0\u6d4b\u7cfb\u7edf\u4e2d\u5b89\u88c5\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5168\u9762\u5730\u6d4b\u8bd5\u548c\u786e\u8ba4Python\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7684\u5b89\u88c5\u72b6\u6001\uff0c\u786e\u4fdd\u5f00\u53d1\u73af\u5883\u7684\u6b63\u5e38\u8fd0\u884c\u3002\u65e0\u8bba\u662f\u901a\u8fc7\u547d\u4ee4\u884c\u3001\u811a\u672c\u8fd8\u662f\u56fe\u5f62\u5316\u5de5\u5177\uff0c\u4e86\u89e3\u5982\u4f55\u68c0\u6d4bPython\u7684\u5b89\u88c5\u72b6\u6001\u5bf9\u4e8e\u5f00\u53d1\u8005\u6765\u8bf4\u90fd\u662f\u4e00\u9879\u57fa\u672c\u6280\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u68c0\u67e5\u6211\u7684\u7535\u8111\u4e0a\u662f\u5426\u5b89\u88c5\u4e86Python\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u901a\u8fc7\u6253\u5f00\u7ec8\u7aef\uff08\u5728Windows\u4e0a\u662f\u547d\u4ee4\u63d0\u793a\u7b26\uff09\u5e76\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u4e86Python\u3002\u5982\u679cPython\u5df2\u5b89\u88c5\uff0c\u7cfb\u7edf\u5c06\u663e\u793a\u5b89\u88c5\u7684\u7248\u672c\u53f7\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u60a8\u5c06\u770b\u5230\u76f8\u5e94\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u53d1\u73b0\u6ca1\u6709\u5b89\u88c5Python\uff0c\u5e94\u8be5\u5982\u4f55\u5b89\u88c5\u5b83\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u7684\u7cfb\u7edf\u672a\u5b89\u88c5Python\uff0c\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u6700\u65b0\u7248\u672c\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u8bf7\u786e\u4fdd\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u540e\u7eed\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528Python\u3002<\/p>\n<p><strong>\u9664\u4e86\u547d\u4ee4\u884c\uff0c\u8fd8\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u68c0\u67e5Python\u662f\u5426\u5b89\u88c5\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u8ba1\u7b97\u673a\u4e0a\u67e5\u627ePython\u7684\u5b89\u88c5\u76ee\u5f55\u6765\u68c0\u67e5\u3002\u901a\u5e38\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5728\u201c\u5f00\u59cb\u83dc\u5355\u201d\u4e2d\u641c\u7d22\u201cPython\u201d\uff0c\u800c\u5728Mac\u6216Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u5728\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\u4e2d\u67e5\u627ePython\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u6216VS Code\u6253\u5f00Python\u9879\u76ee\uff0c\u67e5\u770b\u662f\u5426\u80fd\u591f\u6b63\u5e38\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u4e86Python\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u3001\u8f93\u5165python\u6216python3\u547d\u4ee4 [&hellip;]","protected":false},"author":3,"featured_media":970373,"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\/970368"}],"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=970368"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970368\/revisions"}],"predecessor-version":[{"id":970374,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970368\/revisions\/970374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/970373"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=970368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=970368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=970368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}