{"id":973788,"date":"2024-12-27T05:59:45","date_gmt":"2024-12-26T21:59:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/973788.html"},"modified":"2024-12-27T05:59:47","modified_gmt":"2024-12-26T21:59:47","slug":"python3%e5%a6%82%e4%bd%95%e5%8d%b8%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/973788.html","title":{"rendered":"python3\u5982\u4f55\u5378\u8f7d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195818\/5fca9207-4280-46af-96d0-70cf8793d2f2.webp\" alt=\"python3\u5982\u4f55\u5378\u8f7d\" \/><\/p>\n<p><p> <strong>\u5378\u8f7dPython3\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u3001\u624b\u52a8\u5220\u9664Python\u6587\u4ef6\u3001\u4f7f\u7528Python\u5b98\u65b9\u5378\u8f7d\u7a0b\u5e8f\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u5305\u7ba1\u7406\u5668<\/strong>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u786e\u4fdd\u76f8\u5173\u4f9d\u8d56\u548c\u6587\u4ef6\u88ab\u4e00\u5e76\u79fb\u9664\uff0c\u4ece\u800c\u51cf\u5c11\u7cfb\u7edf\u5197\u4f59\u3002\u5177\u4f53\u64cd\u4f5c\u56e0\u64cd\u4f5c\u7cfb\u7edf\u4e0d\u540c\u800c\u6709\u6240\u5dee\u5f02\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5378\u8f7dPython3\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001WINDOWS\u7cfb\u7edf\u5378\u8f7dPYTHON3<\/strong><\/h2>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e2d\uff0cPython3\u7684\u5b89\u88c5\u901a\u5e38\u662f\u901a\u8fc7\u5b98\u65b9\u7684\u5b89\u88c5\u7a0b\u5e8f\u8fdb\u884c\u7684\uff0c\u56e0\u6b64\u5378\u8f7d\u8fc7\u7a0b\u4e5f\u53ef\u4ee5\u901a\u8fc7\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u9762\u677f\u6765\u5b8c\u6210\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u4f7f\u7528\u63a7\u5236\u9762\u677f\u5378\u8f7d<\/h2>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u63a7\u5236\u9762\u677f<\/strong>\uff1a\u70b9\u51fb\u5f00\u59cb\u83dc\u5355\uff0c\u8f93\u5165\u201c\u63a7\u5236\u9762\u677f\u201d\u5e76\u70b9\u51fb\u8fdb\u5165\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbf\u95ee\u7a0b\u5e8f\u548c\u529f\u80fd<\/strong>\uff1a\u5728\u63a7\u5236\u9762\u677f\u4e2d\u627e\u5230\u5e76\u70b9\u51fb\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u9009\u9879\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u627e\u5230Python3<\/strong>\uff1a\u5728\u5df2\u5b89\u88c5\u7684\u7a0b\u5e8f\u5217\u8868\u4e2d\u627e\u5230Python3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5378\u8f7dPython3<\/strong>\uff1a\u53f3\u952e\u70b9\u51fbPython3\uff0c\u9009\u62e9\u201c\u5378\u8f7d\u201d\uff0c\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5378\u8f7d\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>2\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u5378\u8f7d<\/h2>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u901a\u8fc7\u547d\u4ee4\u884c\u6765\u5378\u8f7dPython3\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26<\/strong>\uff1a\u6309\u4e0bWin + R\u952e\uff0c\u8f93\u5165\u201ccmd\u201d\u5e76\u56de\u8f66\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fdb\u5165Python\u5b89\u88c5\u76ee\u5f55<\/strong>\uff1a\u901a\u5e38Python\u4f1a\u5b89\u88c5\u5728C:\\Users&lt;\u7528\u6237\u540d&gt;\\AppData\\Local\\Programs\\Python\u76ee\u5f55\u4e0b\uff0c\u4f7f\u7528cd\u547d\u4ee4\u8fdb\u5165\u8be5\u76ee\u5f55\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u5378\u8f7d\u7a0b\u5e8f<\/strong>\uff1a\u5728Python\u76ee\u5f55\u4e2d\uff0c\u627e\u5230uninstall.exe\u6587\u4ef6\uff0c\u8fd0\u884c\u8be5\u6587\u4ef6\u6765\u5378\u8f7dPython\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>3\u3001\u624b\u52a8\u5220\u9664\u6b8b\u7559\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u5378\u8f7d\u5b8c\u6210\u540e\uff0c\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u6b8b\u7559\u6587\u4ef6\u548c\u6ce8\u518c\u8868\u9879\u9700\u8981\u624b\u52a8\u5220\u9664\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5220\u9664\u6b8b\u7559\u6587\u4ef6\u5939<\/strong>\uff1a\u68c0\u67e5C:\\Users&lt;\u7528\u6237\u540d&gt;\\AppData\\Local\\Programs\\\u76ee\u5f55\u4e2d\u662f\u5426\u6709\u6b8b\u7559\u7684Python\u6587\u4ef6\u5939\uff0c\u624b\u52a8\u5220\u9664\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6e05\u7406\u6ce8\u518c\u8868<\/strong>\uff1a\u6253\u5f00\u6ce8\u518c\u8868\u7f16\u8f91\u5668\uff08regedit\uff09\uff0c\u641c\u7d22\u4e0ePython\u76f8\u5173\u7684\u6ce8\u518c\u8868\u9879\u5e76\u5220\u9664\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<h2><strong>\u4e8c\u3001MACOS\u7cfb\u7edf\u5378\u8f7dPYTHON3<\/strong><\/h2>\n<p><p>\u5728macOS\u7cfb\u7edf\u4e2d\uff0cPython3\u901a\u5e38\u662f\u901a\u8fc7Homebrew\u6216\u76f4\u63a5\u4e0b\u8f7d\u5b89\u88c5\u5305\u8fdb\u884c\u5b89\u88c5\u7684\u3002\u5378\u8f7d\u65b9\u6cd5\u4e5f\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u4f7f\u7528Homebrew\u5378\u8f7d<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u901a\u8fc7Homebrew\u5b89\u88c5\u4e86Python3\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5378\u8f7d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew uninstall python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u81ea\u52a8\u5904\u7406\u76f8\u5173\u7684\u4f9d\u8d56\u548c\u6587\u4ef6\uff0c\u975e\u5e38\u7b80\u4fbf\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u624b\u52a8\u5220\u9664Python\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u662f\u901a\u8fc7\u4e0b\u8f7d\u5b89\u88c5\u5305\u5b89\u88c5\u7684Python3\uff0c\u5219\u9700\u8981\u624b\u52a8\u5220\u9664\u76f8\u5173\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5220\u9664Python\u5e94\u7528\u7a0b\u5e8f<\/strong>\uff1a\u8fdb\u5165\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u5939\uff0c\u627e\u5230Python3\u5e94\u7528\u7a0b\u5e8f\u5e76\u5c06\u5176\u62d6\u5230\u5e9f\u7eb8\u7bd3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5220\u9664\u76f8\u5173\u6587\u4ef6\u548c\u76ee\u5f55<\/strong>\uff1a\u68c0\u67e5\u4ee5\u4e0b\u76ee\u5f55\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u6587\u4ef6\u548c\u76ee\u5f55\uff1a<\/p>\n<\/p>\n<ul>\n<li>\/Library\/Frameworks\/Python.framework<\/li>\n<li>\/usr\/local\/bin\uff08\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u7b26\u53f7\u94fe\u63a5\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6e05\u7406\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u5728\u7ec8\u7aef\u4e2d\u7f16\u8f91<del>\/.bash_profile\u6216<\/del>\/.zshrc\u6587\u4ef6\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u8def\u5f84\u914d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<h2><strong>\u4e09\u3001LINUX\u7cfb\u7edf\u5378\u8f7dPYTHON3<\/strong><\/h2>\n<p><p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0cPython3\u901a\u5e38\u662f\u901a\u8fc7\u7cfb\u7edf\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u7684\uff0c\u56e0\u6b64\u5378\u8f7d\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u6765\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u4f7f\u7528APT\u5378\u8f7d\uff08\u9002\u7528\u4e8eDebian\/Ubuntu\uff09<\/h2>\n<\/p>\n<p><p>\u5728Debian\u6216Ubuntu\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7dPython3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get remove python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u547d\u4ee4\u5c06\u5378\u8f7dPython3\uff0c\u4f46\u4e0d\u4f1a\u5220\u9664\u914d\u7f6e\u6587\u4ef6\u3002\u5982\u679c\u9700\u8981\u5f7b\u5e95\u5220\u9664\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get purge python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u4f7f\u7528YUM\u5378\u8f7d\uff08\u9002\u7528\u4e8eCentOS\/RHEL\uff09<\/h2>\n<\/p>\n<p><p>\u5728CentOS\u6216RHEL\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7dPython3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo yum remove python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u53ef\u4ee5\u4f7f\u7528<code>purge<\/code>\u9009\u9879\u5f7b\u5e95\u5220\u9664Python3\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u624b\u52a8\u5220\u9664\u6b8b\u7559\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u65e0\u8bba\u662f\u4f7f\u7528APT\u8fd8\u662fYUM\u5378\u8f7d\uff0c\u53ef\u80fd\u90fd\u4f1a\u6709\u6b8b\u7559\u6587\u4ef6\u9700\u8981\u624b\u52a8\u5220\u9664\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5\u548c\u5220\u9664\u6b8b\u7559\u6587\u4ef6\u5939<\/strong>\uff1a\u68c0\u67e5\/usr\/local\/lib\u548c\/usr\/lib\u76ee\u5f55\u4e2d\u662f\u5426\u6709\u6b8b\u7559\u7684Python\u6587\u4ef6\u5939\uff0c\u624b\u52a8\u5220\u9664\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6e05\u7406\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u7f16\u8f91<del>\/.bashrc\u6216<\/del>\/.bash_profile\u6587\u4ef6\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u8def\u5f84\u914d\u7f6e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<h2><strong>\u56db\u3001\u5378\u8f7d\u540e\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/strong><\/h2>\n<p><h2>1\u3001\u73af\u5883\u53d8\u91cf\u672a\u66f4\u65b0<\/h2>\n<\/p>\n<p><p>\u5378\u8f7dPython3\u540e\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u73af\u5883\u53d8\u91cf\u4e2d\u4ecd\u7136\u5b58\u5728Python\u7684\u8def\u5f84\uff0c\u4ece\u800c\u5bfc\u81f4\u7cfb\u7edf\u627e\u4e0d\u5230Python\u547d\u4ee4\u6216\u51fa\u73b0\u5176\u4ed6\u9519\u8bef\u3002\u89e3\u51b3\u65b9\u6cd5\u662f\u624b\u52a8\u7f16\u8f91\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6587\u4ef6\uff08\u5982.bashrc\u6216.zshrc\uff09\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u4f9d\u8d56\u8f6f\u4ef6\u65e0\u6cd5\u8fd0\u884c<\/h2>\n<\/p>\n<p><p>\u67d0\u4e9b\u8f6f\u4ef6\u53ef\u80fd\u4f9d\u8d56\u4e8ePython3\uff0c\u5378\u8f7d\u540e\u53ef\u80fd\u5bfc\u81f4\u8fd9\u4e9b\u8f6f\u4ef6\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\u3002\u5728\u5378\u8f7d\u524d\uff0c\u53ef\u4ee5\u68c0\u67e5\u7cfb\u7edf\u4e2d\u54ea\u4e9b\u8f6f\u4ef6\u4f9d\u8d56\u4e8ePython3\uff0c\u5e76\u5728\u5378\u8f7d\u540e\u91cd\u65b0\u5b89\u88c5\u8fd9\u4e9b\u8f6f\u4ef6\u6216\u5176\u4f9d\u8d56\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u6587\u4ef6\u6b8b\u7559<\/h2>\n<\/p>\n<p><p>\u5378\u8f7d\u540e\uff0c\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9bPython\u76f8\u5173\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u6b8b\u7559\u5728\u7cfb\u7edf\u4e2d\u3002\u53ef\u4ee5\u624b\u52a8\u68c0\u67e5\u5e38\u89c1\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u5e76\u5220\u9664\u4e0d\u9700\u8981\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<h2><strong>\u4e94\u3001\u5378\u8f7dPython3\u7684\u6ce8\u610f\u4e8b\u9879<\/strong><\/h2>\n<p><p>\u5728\u5378\u8f7dPython3\u4e4b\u524d\uff0c\u9700\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5907\u4efd\u91cd\u8981\u6570\u636e<\/strong>\uff1a\u5982\u679c\u5728Python\u73af\u5883\u4e2d\u6709\u91cd\u8981\u7684\u6570\u636e\u6216\u9879\u76ee\uff0c\u786e\u4fdd\u5728\u5378\u8f7d\u524d\u505a\u597d\u5907\u4efd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u4f9d\u8d56\u5173\u7cfb<\/strong>\uff1a\u4e86\u89e3\u54ea\u4e9b\u7a0b\u5e8f\u6216\u670d\u52a1\u4f9d\u8d56\u4e8ePython3\uff0c\u4ee5\u514d\u5378\u8f7d\u540e\u5f71\u54cd\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u6b63\u786e\u7684\u5378\u8f7d\u65b9\u6cd5<\/strong>\uff1a\u6839\u636e\u5b89\u88c5\u65f6\u7684\u65b9\u6cd5\u9009\u62e9\u5408\u9002\u7684\u5378\u8f7d\u65b9\u5f0f\uff0c\u4ee5\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u9ebb\u70e6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u5378\u8f7dPython3\u867d\u7136\u662f\u4e00\u4e2a\u76f8\u5bf9\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u4f46\u9700\u8981\u8c28\u614e\u5bf9\u5f85\uff0c\u5c24\u5176\u662f\u5728\u6d89\u53ca\u5230\u7cfb\u7edf\u4f9d\u8d56\u548c\u73af\u5883\u53d8\u91cf\u65f6\u3002\u901a\u8fc7\u9075\u5faa\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u53ef\u4ee5\u786e\u4fddPython3\u88ab\u5b89\u5168\u4e14\u5f7b\u5e95\u5730\u5378\u8f7d\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u786e\u8ba4\u6211\u7684\u7cfb\u7edf\u4e2d\u662f\u5426\u5df2\u5b89\u88c5Python3\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python3 --version<\/code>\u6216<code>python --version<\/code>\u6765\u68c0\u67e5Python3\u662f\u5426\u5df2\u5b89\u88c5\u3002\u5982\u679c\u7cfb\u7edf\u8fd4\u56de\u7248\u672c\u53f7\uff0c\u4f8b\u5982\u201cPython 3.x.x\u201d\uff0c\u5219\u8868\u660ePython3\u5df2\u6210\u529f\u5b89\u88c5\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u4f1a\u663e\u793a\u201c\u672a\u627e\u5230\u547d\u4ee4\u201d\u6216\u7c7b\u4f3c\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5378\u8f7dPython3\u540e\u4f1a\u5f71\u54cd\u6211\u7684\u5176\u4ed6\u7a0b\u5e8f\u5417\uff1f<\/strong><br \/>\u5378\u8f7dPython3\u53ef\u80fd\u4f1a\u5f71\u54cd\u4f9d\u8d56\u4e8ePython3\u7684\u5e94\u7528\u7a0b\u5e8f\u548c\u5e93\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7279\u5b9a\u7684\u8f6f\u4ef6\u6216\u5f00\u53d1\u73af\u5883\uff0c\u8fd9\u4e9b\u8f6f\u4ef6\u53ef\u80fd\u4f1a\u505c\u6b62\u5de5\u4f5c\u3002\u5efa\u8bae\u5728\u5378\u8f7d\u4e4b\u524d\u786e\u8ba4\u662f\u5426\u6709\u5176\u4ed6\u7a0b\u5e8f\u4f9d\u8d56\u4e8ePython3\uff0c\u5e76\u8003\u8651\u5907\u4efd\u76f8\u5173\u6570\u636e\u6216\u4ee3\u7801\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5378\u8f7dPython3\uff1f<\/strong><br \/>\u5728Windows\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u7684\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u627e\u5230Python3\uff0c\u53f3\u952e\u70b9\u51fb\u9009\u62e9\u201c\u5378\u8f7d\u201d\u3002\u5728macOS\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4<code>brew uninstall python3<\/code>\uff08\u5982\u679c\u901a\u8fc7Homebrew\u5b89\u88c5\uff09\u6216\u624b\u52a8\u5220\u9664\u76f8\u5173\u6587\u4ef6\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\uff0c\u4f8b\u5982<code>sudo apt remove python3<\/code>\uff08\u5bf9\u4e8eDebian\/Ubuntu\uff09\u6765\u5378\u8f7dPython3\u3002\u786e\u4fdd\u6839\u636e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u6b63\u786e\u7684\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5378\u8f7dPython3\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u3001\u624b\u52a8\u5220\u9664Python\u6587\u4ef6\u3001\u4f7f\u7528Python\u5b98\u65b9\u5378\u8f7d\u7a0b\u5e8f\u3002 \u5176\u4e2d\uff0c\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":973795,"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\/973788"}],"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=973788"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973788\/revisions"}],"predecessor-version":[{"id":973796,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973788\/revisions\/973796"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/973795"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=973788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=973788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=973788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}