{"id":996822,"date":"2024-12-27T09:18:13","date_gmt":"2024-12-27T01:18:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/996822.html"},"modified":"2024-12-27T09:18:15","modified_gmt":"2024-12-27T01:18:15","slug":"python3-3%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/996822.html","title":{"rendered":"python3.3\u5982\u4f55\u5220\u9664"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25072908\/897dcc71-dc3f-4d40-8dd5-a96050d9f117.webp\" alt=\"python3.3\u5982\u4f55\u5220\u9664\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<br \/>\u8981\u5220\u9664Python 3.3\uff0c\u53ef\u4ee5<strong>\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5378\u8f7d\u3001\u624b\u52a8\u5220\u9664\u5b89\u88c5\u76ee\u5f55\u3001\u66f4\u65b0\u73af\u5883\u53d8\u91cf<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5378\u8f7d\u662f\u6700\u4e3a\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u786e\u4fdd\u5378\u8f7d\u8fc7\u7a0b\u7684\u5b8c\u6574\u6027\u548c\u5b89\u5168\u6027\u3002\u5728\u5177\u4f53\u5b9e\u65bd\u8fc7\u7a0b\u4e2d\uff0c\u7528\u6237\u9700\u8981\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\u9009\u62e9\u76f8\u5e94\u7684\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u5378\u8f7dPython\uff1b\u800c\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u547d\u4ee4\u8fdb\u884c\u5378\u8f7d\u3002\u6b64\u5916\uff0c\u624b\u52a8\u5220\u9664Python\u5b89\u88c5\u76ee\u5f55\u4e5f\u662f\u4e00\u79cd\u65b9\u6cd5\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u5220\u9664\u540e\u53ef\u80fd\u9057\u7559\u7684\u73af\u5883\u53d8\u91cf\u548c\u6ce8\u518c\u8868\u4fe1\u606f\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\u7684\u5177\u4f53\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5378\u8f7dPython 3.3<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5378\u8f7d\u662f\u6700\u4e3a\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u786e\u4fdd\u5378\u8f7d\u8fc7\u7a0b\u7684\u5b8c\u6574\u6027\u548c\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>Windows\u7cfb\u7edf\u5378\u8f7d\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u63a7\u5236\u9762\u677f\uff0c\u9009\u62e9\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u3002<\/li>\n<li>\u5728\u7a0b\u5e8f\u5217\u8868\u4e2d\u627e\u5230Python 3.3\uff0c\u70b9\u51fb\u201c\u5378\u8f7d\u201d\u6309\u94ae\u3002<\/li>\n<li>\u6309\u7167\u5378\u8f7d\u5411\u5bfc\u7684\u63d0\u793a\u5b8c\u6210\u5378\u8f7d\u8fc7\u7a0b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>macOS\u7cfb\u7edf\u5378\u8f7d\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u67e5\u770bPython 3.3\u7684\u5b89\u88c5\u4f4d\u7f6e\uff1a\n<pre><code class=\"language-bash\">which python3.3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528Homebrew\u5378\u8f7dPython 3.3\uff1a\n<pre><code class=\"language-bash\">brew uninstall python@3.3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Linux\u7cfb\u7edf\u5378\u8f7d\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u7ec8\u7aef\uff0c\u6839\u636e\u6240\u4f7f\u7528\u7684Linux\u53d1\u884c\u7248\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a\n<ul>\n<li>Ubuntu\/Debian\u7cfb\u7edf\uff1a\n<pre><code class=\"language-bash\">sudo apt-get remove python3.3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>Fedora\/Red Hat\u7cfb\u7edf\uff1a\n<pre><code class=\"language-bash\">sudo dnf remove python3.3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>Arch Linux\u7cfb\u7edf\uff1a\n<pre><code class=\"language-bash\">sudo pacman -R python3.3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u624b\u52a8\u5220\u9664Python 3.3\u5b89\u88c5\u76ee\u5f55<\/p>\n<\/p>\n<p><p>\u624b\u52a8\u5220\u9664Python\u5b89\u88c5\u76ee\u5f55\u4e5f\u662f\u4e00\u79cd\u65b9\u6cd5\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u5220\u9664\u540e\u53ef\u80fd\u9057\u7559\u7684\u73af\u5883\u53d8\u91cf\u548c\u6ce8\u518c\u8868\u4fe1\u606f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u627e\u5230Python 3.3\u7684\u5b89\u88c5\u76ee\u5f55\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u901a\u5e38\u5b89\u88c5\u5728C:\\Python33\u6216\u8005C:\\Program Files\\Python33\u3002<\/li>\n<li>\u5728macOS\u7cfb\u7edf\u4e2d\uff0c\u901a\u5e38\u5b89\u88c5\u5728\/usr\/local\/bin\/\u3002<\/li>\n<li>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u901a\u5e38\u5b89\u88c5\u5728\/usr\/bin\/\u6216\u8005\/usr\/local\/bin\/\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5220\u9664\u5b89\u88c5\u76ee\u5f55\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d\u76f4\u63a5\u5220\u9664Python 3.3\u7684\u5b89\u88c5\u76ee\u5f55\u3002<\/li>\n<li>\u6216\u8005\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4\u5220\u9664\uff1a\n<pre><code class=\"language-bash\">rm -rf \/path\/to\/python3.3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u66f4\u65b0\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5220\u9664Python 3.3\u540e\uff0c\u9700\u8981\u66f4\u65b0\u73af\u5883\u53d8\u91cf\u4ee5\u786e\u4fdd\u7cfb\u7edf\u4e0d\u518d\u4f7f\u7528\u5df2\u5220\u9664\u7684\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>Windows\u7cfb\u7edf\u66f4\u65b0\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u5bf9\u8bdd\u6846\uff0c\u9009\u62e9\u201c\u9ad8\u7ea7\u201d\u9009\u9879\u5361\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u627e\u5230\u201cPath\u201d\uff0c\u9009\u62e9\u5e76\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002<\/li>\n<li>\u5220\u9664\u4e0ePython 3.3\u76f8\u5173\u7684\u8def\u5f84\uff0c\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u66f4\u6539\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>macOS\u548cLinux\u7cfb\u7edf\u66f4\u65b0\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6253\u5f00\u7ec8\u7aef\uff0c\u7f16\u8f91.bash_profile\u6216.zshrc\u6587\u4ef6\uff1a\n<pre><code class=\"language-bash\">nano ~\/.bash_profile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u5220\u9664\u4e0ePython 3.3\u76f8\u5173\u7684\u8def\u5f84\uff0c\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/li>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u66f4\u6539\u751f\u6548\uff1a\n<pre><code class=\"language-bash\">source ~\/.bash_profile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u9a8c\u8bc1\u5378\u8f7d\u7ed3\u679c<\/p>\n<\/p>\n<p><p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u9700\u8981\u9a8c\u8bc1Python 3.3\u662f\u5426\u5df2\u6210\u529f\u5378\u8f7d\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770bPython\u7248\u672c\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\u8fd4\u56de\u7684\u7248\u672c\u53f7\u4e0d\u662f3.3\uff0c\u8bf4\u660ePython 3.3\u5df2\u6210\u529f\u5378\u8f7d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5Python 3.3\u7684\u5b89\u88c5\u76ee\u5f55\u662f\u5426\u5df2\u5220\u9664\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b89\u5168\u3001\u5f7b\u5e95\u5730\u5220\u9664Python 3.3\uff0c\u5e76\u786e\u4fdd\u7cfb\u7edf\u6b63\u5e38\u8fd0\u884c\u3002\u5982\u679c\u7528\u6237\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u7248\u672c\u7684Python\uff0c\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5408\u9002\u7684\u5b89\u88c5\u5305\uff0c\u5e76\u6309\u7167\u8bf4\u660e\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows\u7cfb\u7edf\u4e2d\u5378\u8f7dPython 3.3\uff1f<\/strong><br \/>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u8f7b\u677e\u5378\u8f7dPython 3.3\u3002\u6253\u5f00\u63a7\u5236\u9762\u677f\uff0c\u9009\u62e9\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\uff0c\u627e\u5230Python 3.3\u7684\u6761\u76ee\uff0c\u53f3\u952e\u70b9\u51fb\u5e76\u9009\u62e9\u201c\u5378\u8f7d\u201d\u3002\u6309\u7167\u63d0\u793a\u5b8c\u6210\u5378\u8f7d\u6d41\u7a0b\u5373\u53ef\u3002<\/p>\n<p><strong>\u5728macOS\u4e0a\u5982\u4f55\u5f7b\u5e95\u5220\u9664Python 3.3\uff1f<\/strong><br \/>\u8981\u5728macOS\u4e0a\u5220\u9664Python 3.3\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165<code>sudo rm -rf \/Library\/Frameworks\/Python.framework\/Versions\/3.3<\/code>\uff0c\u7136\u540e\u8f93\u5165\u7ba1\u7406\u5458\u5bc6\u7801\u4ee5\u786e\u8ba4\u3002\u63a5\u7740\uff0c\u60a8\u8fd8\u9700\u8981\u5220\u9664\u76f8\u5173\u7684\u5e94\u7528\u7a0b\u5e8f\u548c\u7b26\u53f7\u94fe\u63a5\u3002<\/p>\n<p><strong>Python 3.3\u5220\u9664\u540e\u4f1a\u5f71\u54cd\u5176\u4ed6\u7248\u672c\u5417\uff1f<\/strong><br \/>\u5220\u9664Python 3.3\u901a\u5e38\u4e0d\u4f1a\u5f71\u54cd\u7cfb\u7edf\u4e0a\u5b89\u88c5\u7684\u5176\u4ed6Python\u7248\u672c\u3002\u6bcf\u4e2a\u7248\u672c\u7684Python\u90fd\u4f1a\u5b89\u88c5\u5728\u4e0d\u540c\u7684\u76ee\u5f55\u4e2d\uff0c\u56e0\u6b64\u5b83\u4eec\u4e4b\u95f4\u662f\u76f8\u4e92\u72ec\u7acb\u7684\u3002\u7136\u800c\uff0c\u786e\u4fdd\u5728\u5220\u9664\u4e4b\u524d\u5907\u4efd\u91cd\u8981\u7684\u9879\u76ee\u548c\u73af\u5883\uff0c\u4ee5\u9632\u4e07\u4e00\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1a\u8981\u5220\u9664Python 3.3\uff0c\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5378\u8f7d\u3001\u624b\u52a8\u5220\u9664\u5b89\u88c5\u76ee\u5f55\u3001\u66f4\u65b0\u73af\u5883\u53d8\u91cf\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5305\u7ba1\u7406\u5668 [&hellip;]","protected":false},"author":3,"featured_media":996827,"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\/996822"}],"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=996822"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/996822\/revisions"}],"predecessor-version":[{"id":996831,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/996822\/revisions\/996831"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/996827"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=996822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=996822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=996822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}