{"id":1178470,"date":"2025-01-15T18:11:32","date_gmt":"2025-01-15T10:11:32","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1178470.html"},"modified":"2025-01-15T18:11:35","modified_gmt":"2025-01-15T10:11:35","slug":"%e5%a6%82%e4%bd%95%e5%bd%bb%e5%ba%95%e5%88%a0%e9%99%a4python%e5%8f%8a%e5%85%b6%e7%bb%84%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1178470.html","title":{"rendered":"\u5982\u4f55\u5f7b\u5e95\u5220\u9664python\u53ca\u5176\u7ec4\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25113135\/21e69409-b8b2-4bdf-b128-f0d236cb8b9b.webp\" alt=\"\u5982\u4f55\u5f7b\u5e95\u5220\u9664python\u53ca\u5176\u7ec4\u4ef6\" \/><\/p>\n<p><p> <strong>\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6\uff0c\u9700\u8981\u5305\u62ec\uff1a\u5378\u8f7dPython\u3001\u5220\u9664\u73af\u5883\u53d8\u91cf\u3001\u6e05\u7406\u6b8b\u7559\u6587\u4ef6\u3001\u5378\u8f7d\u76f8\u5173\u7684\u5305\u7ba1\u7406\u5668\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u6e05\u7406\u6b8b\u7559\u6587\u4ef6<\/strong>\u662f\u4e00\u4e2a\u5173\u952e\u6b65\u9aa4\uff0c\u56e0\u4e3a\u5f88\u591a\u65f6\u5019\u5373\u4f7f\u5378\u8f7d\u4e86Python\u672c\u8eab\uff0c\u4f46\u4e00\u4e9b\u6b8b\u7559\u6587\u4ef6\u548c\u914d\u7f6e\u6587\u4ef6\u4ecd\u7136\u5b58\u5728\u4e8e\u7cfb\u7edf\u4e2d\uff0c\u53ef\u80fd\u4f1a\u5f71\u54cd\u540e\u7eed\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001WINDOWS\u7cfb\u7edf\u4e2d\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6<\/strong><\/h2>\n<p><h2>1\u3001\u5378\u8f7dPython<\/h2>\n<\/p>\n<p><p>\u9996\u5148\u9700\u8981\u901a\u8fc7\u7cfb\u7edf\u7684\u201c\u6dfb\u52a0\u6216\u5220\u9664\u7a0b\u5e8f\u201d\u529f\u80fd\u6765\u5378\u8f7dPython\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\u3002<\/li>\n<li>\u9009\u62e9\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u3002<\/li>\n<li>\u5728\u7a0b\u5e8f\u5217\u8868\u4e2d\u627e\u5230Python\uff0c\u9009\u62e9\u5b83\u5e76\u70b9\u51fb\u201c\u5378\u8f7d\u201d\u3002<\/li>\n<\/ol>\n<p><h2>2\u3001\u5220\u9664\u73af\u5883\u53d8\u91cf<\/h2>\n<\/p>\n<p><p>\u5373\u4f7f\u5378\u8f7d\u4e86Python\uff0c\u73af\u5883\u53d8\u91cf\u53ef\u80fd\u4ecd\u7136\u5b58\u5728\uff0c\u9700\u8981\u624b\u52a8\u5220\u9664\u3002<\/p>\n<\/p>\n<ol>\n<li>\u53f3\u952e\u70b9\u51fb\u201c\u6b64\u7535\u8111\u201d\u6216\u201c\u6211\u7684\u7535\u8111\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u6309\u94ae\u3002<\/li>\n<li>\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u6216\u201c\u7528\u6237\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u53d8\u91cf\uff0c\u5982<code>PYTHONPATH<\/code>\u3001<code>PYTHONHOME<\/code>\u7b49\u3002<\/li>\n<\/ol>\n<p><h2>3\u3001\u6e05\u7406\u6b8b\u7559\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>Python\u5728\u5378\u8f7d\u540e\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u6b8b\u7559\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u6587\u4ef6<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a>\u5668\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u4ee5\u4e0b\u76ee\u5f55\uff0c\u5e76\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff1a\n<ul>\n<li><code>C:\\Users\\&lt;YourUsername&gt;\\AppData\\Local\\Programs\\Python<\/code><\/li>\n<li><code>C:\\Users\\&lt;YourUsername&gt;\\AppData\\Local\\Programs\\Python\\Python&lt;version&gt;<\/code><\/li>\n<li><code>C:\\Users\\&lt;YourUsername&gt;\\AppData\\Local\\Programs\\Python\\Scripts<\/code><\/li>\n<li><code>C:\\Users\\&lt;YourUsername&gt;\\AppData\\Roaming\\Python<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\u68c0\u67e5\u662f\u5426\u5b58\u5728\u5176\u4ed6\u4e0ePython\u76f8\u5173\u7684\u6587\u4ef6\u5939\uff0c\u5e76\u5c06\u5176\u5220\u9664\u3002<\/li>\n<\/ol>\n<p><h2>4\u3001\u5378\u8f7d\u76f8\u5173\u7684\u5305\u7ba1\u7406\u5668<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4f7f\u7528\u4e86\u5305\u7ba1\u7406\u5668\u5982<code>pip<\/code>\u3001<code>conda<\/code>\u7b49\uff0c\u4e5f\u9700\u8981\u5c06\u5176\u5378\u8f7d\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\u3002<\/li>\n<li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5305\u7ba1\u7406\u5668\uff1a\n<pre><code class=\"language-shell\">pip list<\/p>\n<p>conda list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528\u76f8\u5e94\u7684\u5378\u8f7d\u547d\u4ee4\u6765\u5220\u9664\u8fd9\u4e9b\u5305\u7ba1\u7406\u5668\u548c\u76f8\u5173\u5305\u3002<\/li>\n<\/ol>\n<h2><strong>\u4e8c\u3001MACOS\u7cfb\u7edf\u4e2d\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6<\/strong><\/h2>\n<p><h2>1\u3001\u5378\u8f7dPython<\/h2>\n<\/p>\n<p><p>macOS\u4e0a\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u547d\u4ee4\u6765\u5378\u8f7dPython\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5220\u9664Python\uff1a\n<pre><code class=\"language-shell\">sudo rm -rf \/Library\/Frameworks\/Python.framework<\/p>\n<p>sudo rm -rf \/Applications\/Python &lt;version&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>2\u3001\u5220\u9664\u73af\u5883\u53d8\u91cf<\/h2>\n<\/p>\n<p><p>\u73af\u5883\u53d8\u91cf\u9700\u8981\u624b\u52a8\u5220\u9664\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u7f16\u8f91\u4f60\u7684shell\u914d\u7f6e\u6587\u4ef6\uff08\u5982<code>.bash_profile<\/code>\u3001<code>.zshrc<\/code>\u7b49\uff09\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u884c\uff1a\n<pre><code class=\"language-shell\">nano ~\/.bash_profile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u53d8\u91cf\u8bbe\u7f6e\uff0c\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/li>\n<\/ol>\n<p><h2>3\u3001\u6e05\u7406\u6b8b\u7559\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u5220\u9664\u6b8b\u7559\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u7f13\u5b58\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u4ee5\u4e0b\u76ee\u5f55\u5e76\u5220\u9664\u76f8\u5173\u6587\u4ef6\uff1a\n<pre><code class=\"language-shell\">rm -rf ~\/Library\/Caches\/pip<\/p>\n<p>rm -rf ~\/Library\/Application\\ Support\/pip<\/p>\n<p>rm -rf ~\/.local\/share\/virtualenvs<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>4\u3001\u5378\u8f7d\u76f8\u5173\u7684\u5305\u7ba1\u7406\u5668<\/h2>\n<\/p>\n<p><p>\u540c\u6837\u9700\u8981\u5378\u8f7d\u5305\u7ba1\u7406\u5668\u5982<code>pip<\/code>\u3001<code>conda<\/code>\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u548c\u5378\u8f7d\u5305\u7ba1\u7406\u5668\uff1a\n<pre><code class=\"language-shell\">pip list<\/p>\n<p>conda list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528\u76f8\u5e94\u7684\u5378\u8f7d\u547d\u4ee4\u6765\u5220\u9664\u8fd9\u4e9b\u5305\u7ba1\u7406\u5668\u548c\u76f8\u5173\u5305\u3002<\/li>\n<\/ol>\n<h2><strong>\u4e09\u3001LINUX\u7cfb\u7edf\u4e2d\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6<\/strong><\/h2>\n<p><h2>1\u3001\u5378\u8f7dPython<\/h2>\n<\/p>\n<p><p>\u5927\u591a\u6570Linux\u53d1\u884c\u7248\u90fd\u5185\u7f6e\u4e86Python\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5378\u8f7d\u975e\u7cfb\u7edf\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7dPython\uff1a\n<pre><code class=\"language-shell\">sudo apt-get remove python3<\/p>\n<p>sudo apt-get purge python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>2\u3001\u5220\u9664\u73af\u5883\u53d8\u91cf<\/h2>\n<\/p>\n<p><p>\u9700\u8981\u624b\u52a8\u5220\u9664\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u7f16\u8f91\u4f60\u7684shell\u914d\u7f6e\u6587\u4ef6\uff08\u5982<code>.bashrc<\/code>\u3001<code>.zshrc<\/code>\u7b49\uff09\uff0c\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u884c\uff1a\n<pre><code class=\"language-shell\">nano ~\/.bashrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u5220\u9664\u4e0ePython\u76f8\u5173\u7684\u53d8\u91cf\u8bbe\u7f6e\uff0c\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/li>\n<\/ol>\n<p><h2>3\u3001\u6e05\u7406\u6b8b\u7559\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u6e05\u7406\u6b8b\u7559\u7684\u914d\u7f6e\u6587\u4ef6\u548c\u7f13\u5b58\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u4ee5\u4e0b\u76ee\u5f55\u5e76\u5220\u9664\u76f8\u5173\u6587\u4ef6\uff1a\n<pre><code class=\"language-shell\">rm -rf ~\/.cache\/pip<\/p>\n<p>rm -rf ~\/.local\/lib\/python3.*<\/p>\n<p>rm -rf ~\/.local\/share\/virtualenvs<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>4\u3001\u5378\u8f7d\u76f8\u5173\u7684\u5305\u7ba1\u7406\u5668<\/h2>\n<\/p>\n<p><p>\u9700\u8981\u5378\u8f7d\u5305\u7ba1\u7406\u5668\u5982<code>pip<\/code>\u3001<code>conda<\/code>\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u7ec8\u7aef\uff08Terminal\uff09\u3002<\/li>\n<li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u548c\u5378\u8f7d\u5305\u7ba1\u7406\u5668\uff1a\n<pre><code class=\"language-shell\">pip list<\/p>\n<p>conda list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528\u76f8\u5e94\u7684\u5378\u8f7d\u547d\u4ee4\u6765\u5220\u9664\u8fd9\u4e9b\u5305\u7ba1\u7406\u5668\u548c\u76f8\u5173\u5305\u3002<\/li>\n<\/ol>\n<h2><strong>\u56db\u3001\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5<\/strong><\/h2>\n<p><h2>1\u3001\u5907\u4efd\u6570\u636e<\/h2>\n<\/p>\n<p><p>\u5728\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6\u4e4b\u524d\uff0c\u786e\u4fdd\u5907\u4efd\u4f60\u6240\u6709\u7684\u91cd\u8981\u6570\u636e\u548c\u9879\u76ee\u6587\u4ef6\u3002\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6\u53ef\u80fd\u4f1a\u5f71\u54cd\u5230\u4f60\u7684\u5f00\u53d1\u73af\u5883\uff0c\u56e0\u6b64\u5907\u4efd\u662f\u5fc5\u8981\u7684\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/h2>\n<\/p>\n<p><p>\u5728\u672a\u6765\u5b89\u88c5Python\u65f6\uff0c\u5efa\u8bae\u4f7f\u7528\u865a\u62df\u73af\u5883\uff08\u5982<code>virtualenv<\/code>\u6216<code>conda<\/code>\uff09\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7ba1\u7406\u4f9d\u8d56\u548c\u907f\u514d\u6c61\u67d3\u5168\u5c40\u73af\u5883\u3002\u865a\u62df\u73af\u5883\u53ef\u4ee5\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u51cf\u5c11\u51b2\u7a81\u548c\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u5b9a\u671f\u6e05\u7406<\/h2>\n<\/p>\n<p><p>\u5b9a\u671f\u6e05\u7406\u4f60\u7684\u5f00\u53d1\u73af\u5883\u548c\u4e0d\u518d\u4f7f\u7528\u7684\u5305\uff0c\u53ef\u4ee5\u4fdd\u6301\u7cfb\u7edf\u7684\u6574\u6d01\u548c\u9ad8\u6548\u3002\u4f7f\u7528\u5de5\u5177\u5982<code>pip-autoremove<\/code>\u6765\u81ea\u52a8\u5220\u9664\u4e0d\u518d\u9700\u8981\u7684\u4f9d\u8d56\u5305\u3002<\/p>\n<\/p>\n<p><h2>4\u3001\u53c2\u8003\u5b98\u65b9\u6587\u6863<\/h2>\n<\/p>\n<p><p>\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u548cPython\u7248\u672c\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u5378\u8f7d\u65b9\u6cd5\uff0c\u5efa\u8bae\u53c2\u8003Python\u5b98\u7f51\u6216\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4ee5\u83b7\u5f97\u6700\u51c6\u786e\u548c\u6700\u65b0\u7684\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u53ef\u4ee5\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6\uff0c\u5e76\u786e\u4fdd\u7cfb\u7edf\u5e72\u51c0\u65e0\u6b8b\u7559\u3002\u8fd9\u4e0d\u4ec5\u6709\u52a9\u4e8e\u89e3\u51b3\u73af\u5883\u51b2\u7a81\u548c\u95ee\u9898\uff0c\u4e5f\u4e3a\u91cd\u65b0\u5b89\u88c5\u548c\u914d\u7f6ePython\u63d0\u4f9b\u4e86\u4e00\u4e2a\u826f\u597d\u7684\u57fa\u7840\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\u5b89\u88c5\u4e86Python\uff1f<\/strong><br \/>\u8981\u786e\u8ba4Python\u662f\u5426\u5b89\u88c5\u5728\u60a8\u7684\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08macOS\/Linux\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u3002\u5982\u679cPython\u5b89\u88c5\u6210\u529f\uff0c\u60a8\u5c06\u770b\u5230\u7248\u672c\u53f7\u3002\u5982\u679c\u7cfb\u7edf\u63d0\u793a\u547d\u4ee4\u672a\u627e\u5230\uff0c\u8bf4\u660ePython\u53ef\u80fd\u672a\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5220\u9664Python\u540e\uff0c\u6211\u7684\u73af\u5883\u53d8\u91cf\u4f1a\u53d7\u5230\u5f71\u54cd\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u5220\u9664Python\u4f1a\u5f71\u54cd\u4e0e\u5176\u76f8\u5173\u7684\u73af\u5883\u53d8\u91cf\u3002\u5982\u679c\u60a8\u5728\u7cfb\u7edf\u7684PATH\u4e2d\u6dfb\u52a0\u4e86Python\u7684\u8def\u5f84\uff0c\u5efa\u8bae\u5728\u5378\u8f7d\u540e\u624b\u52a8\u68c0\u67e5\u5e76\u5220\u9664\u8fd9\u4e9b\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u7684\u5176\u4ed6\u529f\u80fd\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p><strong>\u662f\u5426\u9700\u8981\u624b\u52a8\u5220\u9664Python\u7684\u4f9d\u8d56\u5e93\u548c\u6a21\u5757\uff1f<\/strong><br \/>\u5728\u5220\u9664Python\u65f6\uff0c\u901a\u5e38\u4f1a\u6709\u9009\u9879\u5220\u9664\u76f8\u5173\u7684\u5e93\u548c\u6a21\u5757\u3002\u4f46\u662f\uff0c\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u624b\u52a8\u68c0\u67e5\u5e76\u5220\u9664\u8fd9\u4e9b\u7ec4\u4ef6\u662f\u660e\u667a\u7684\uff0c\u7279\u522b\u662f\u5982\u679c\u60a8\u66fe\u5b89\u88c5\u8fc7\u7b2c\u4e09\u65b9\u5e93\u6216\u4f7f\u7528\u4e86\u865a\u62df\u73af\u5883\u3002\u786e\u4fdd\u68c0\u67e5<code>site-packages<\/code>\u76ee\u5f55\u548c\u4efb\u4f55\u81ea\u5b9a\u4e49\u7684\u5e93\u6587\u4ef6\uff0c\u4ee5\u5f7b\u5e95\u6e05\u7406\u7cfb\u7edf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f7b\u5e95\u5220\u9664Python\u53ca\u5176\u7ec4\u4ef6\uff0c\u9700\u8981\u5305\u62ec\uff1a\u5378\u8f7dPython\u3001\u5220\u9664\u73af\u5883\u53d8\u91cf\u3001\u6e05\u7406\u6b8b\u7559\u6587\u4ef6\u3001\u5378\u8f7d\u76f8\u5173\u7684\u5305\u7ba1\u7406\u5668\u3002 \u5176 [&hellip;]","protected":false},"author":3,"featured_media":1178478,"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\/1178470"}],"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=1178470"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1178470\/revisions"}],"predecessor-version":[{"id":1178480,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1178470\/revisions\/1178480"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1178478"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1178470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1178470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1178470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}