{"id":1107570,"date":"2025-01-08T16:51:21","date_gmt":"2025-01-08T08:51:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1107570.html"},"modified":"2025-01-08T16:51:24","modified_gmt":"2025-01-08T08:51:24","slug":"%e6%8e%a7%e5%88%b6%e5%8f%b0%e5%a6%82%e4%bd%95%e5%88%87%e6%8d%a2python%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1107570.html","title":{"rendered":"\u63a7\u5236\u53f0\u5982\u4f55\u5207\u6362python\u73af\u5883\u53d8\u91cf"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071533\/15afec18-fbc2-4d4e-abac-d66b6c0c16ee.webp\" alt=\"\u63a7\u5236\u53f0\u5982\u4f55\u5207\u6362python\u73af\u5883\u53d8\u91cf\" \/><\/p>\n<p><p> <strong>\u63a7\u5236\u53f0\u5207\u6362python\u73af\u5883\u53d8\u91cf\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u4f7f\u7528conda\u3001\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7ba1\u7406\u5de5\u5177<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u6700\u5e38\u89c1\u548c\u63a8\u8350\u7684\u65b9\u6cd5\u3002\u865a\u62df\u73af\u5883\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u4e3a\u4e0d\u540c\u7684\u9879\u76ee\u9694\u79bb\u5e76\u7ba1\u7406\u4e0d\u540c\u7684Python\u7248\u672c\u53ca\u5176\u4f9d\u8d56\u5305\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8be6\u7ec6\u8ba8\u8bba\u5982\u4f55\u5728\u63a7\u5236\u53f0\u5207\u6362Python\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u662f\u4e00\u4e2a\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u53ef\u4ee5\u5305\u542b\u7279\u5b9a\u7248\u672c\u7684Python\u89e3\u91ca\u5668\u53ca\u5176\u4f9d\u8d56\u7684\u7b2c\u4e09\u65b9\u5305\u3002\u4f7f\u7528\u865a\u62df\u73af\u5883\u4e0d\u4ec5\u53ef\u4ee5\u907f\u514d\u5305\u51b2\u7a81\uff0c\u8fd8\u53ef\u4ee5\u7b80\u5316\u9879\u76ee\u7684\u4f9d\u8d56\u7ba1\u7406\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u521b\u5efa\u548c\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u7684\u8be6\u7ec6\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u5b89\u88c5\u4e86<code>virtualenv<\/code>\u6216<code>venv<\/code>\u3002<code>virtualenv<\/code>\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5305\uff0c\u800c<code>venv<\/code>\u662fPython 3.3\u53ca\u4ee5\u4e0a\u7248\u672c\u81ea\u5e26\u7684\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h5>\u4f7f\u7528 <code>venv<\/code> \u521b\u5efa\u865a\u62df\u73af\u5883<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u547d\u4ee4\u4e2d\uff0c<code>myenv<\/code>\u662f\u4f60\u60f3\u8981\u521b\u5efa\u7684\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\u3002\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u521b\u5efa\u4e00\u4e2a\u5305\u542b<code>Python<\/code>\u89e3\u91ca\u5668\u3001\u6807\u51c6\u5e93\u548c\u57fa\u672c\u5de5\u5177\u7684\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><h5>\u4f7f\u7528 <code>virtualenv<\/code> \u521b\u5efa\u865a\u62df\u73af\u5883<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install virtualenv<\/p>\n<p>virtualenv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5b89\u88c5<code>virtualenv<\/code>\u5e76\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>myenv<\/code>\u7684\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>2. \u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u865a\u62df\u73af\u5883\u540e\uff0c\u4f60\u9700\u8981\u6fc0\u6d3b\u5b83\u4ee5\u4fbf\u5728\u63a7\u5236\u53f0\u4e2d\u4f7f\u7528\u8be5\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h5>\u5728Windows\u4e0a\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">myenv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>\u5728Unix\u6216MacOS\u4e0a\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u4f60\u7684\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u901a\u5e38\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\u3002\u8fd9\u8868\u793a\u4f60\u73b0\u5728\u6b63\u5728\u4f7f\u7528\u8be5\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>3. \u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u5305<\/h4>\n<\/p>\n<p><p>\u4e00\u65e6\u865a\u62df\u73af\u5883\u88ab\u6fc0\u6d3b\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>pip<\/code>\u6765\u5b89\u88c5\u6240\u9700\u7684\u5305\uff0c\u8fd9\u4e9b\u5305\u53ea\u4f1a\u5b89\u88c5\u5728\u8be5\u865a\u62df\u73af\u5883\u4e2d\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40\u7684Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u9000\u51fa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5b8c\u6210\u5de5\u4f5c\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u9000\u51fa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Conda<\/h3>\n<\/p>\n<p><p>Conda\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5305\u7ba1\u7406\u7cfb\u7edf\u548c\u73af\u5883\u7ba1\u7406\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8fd0\u884c\u5728Windows\u3001macOS\u548cLinux\u4e0a\u3002Conda\u6700\u521d\u662f\u4e3a\u4e86Python\u6570\u636e\u79d1\u5b66\u9886\u57df\u5f00\u53d1\u7684\uff0c\u4f46\u73b0\u5728\u4e5f\u652f\u6301\u5176\u4ed6\u8bed\u8a00\u7684\u5305\u7ba1\u7406\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528Conda\u5207\u6362Python\u73af\u5883\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5Conda<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5Anaconda\u6216Miniconda\u6765\u83b7\u5f97Conda\u3002Anaconda\u662f\u4e00\u4e2a\u5305\u542b\u4e86\u5927\u91cf\u9884\u5b89\u88c5\u5305\u7684Python\u53d1\u884c\u7248\uff0c\u800cMiniconda\u662f\u4e00\u4e2a\u7cbe\u7b80\u7248\uff0c\u53ea\u5305\u542bConda\u548cPython\u3002<\/p>\n<\/p>\n<p><h4>2. \u521b\u5efaConda\u73af\u5883<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda create --name myenv python=3.8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>myenv<\/code>\u7684\u73af\u5883\uff0c\u5e76\u5b89\u88c5Python 3.8\u3002<\/p>\n<\/p>\n<p><h4>3. \u6fc0\u6d3bConda\u73af\u5883<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda activate myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u73af\u5883\u540e\uff0c\u4f60\u53ef\u4ee5\u5b89\u88c5\u548c\u7ba1\u7406\u8be5\u73af\u5883\u4e2d\u7684\u5305\u3002<\/p>\n<\/p>\n<p><h4>4. \u5728Conda\u73af\u5883\u4e2d\u5b89\u88c5\u5305<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u9000\u51faConda\u73af\u5883<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7ba1\u7406\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u865a\u62df\u73af\u5883\u548cConda\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7ba1\u7406\u5de5\u5177\u6765\u5207\u6362Python\u73af\u5883\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8bbe\u7f6e\u548c\u7ba1\u7406\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528Direnv<\/h4>\n<\/p>\n<p><p>Direnv\u662f\u4e00\u4e2a\u6269\u5c55shell\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u81ea\u52a8\u52a0\u8f7d\u548c\u5378\u8f7d\u9879\u76ee\u76ee\u5f55\u4e2d\u7684\u73af\u5883\u53d8\u91cf\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528Direnv\u6765\u5207\u6362Python\u73af\u5883\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h5>\u5b89\u88c5Direnv<\/h5>\n<\/p>\n<p><p>\u5728Unix\u6216MacOS\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5Direnv\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install direnv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>\u914d\u7f6eShell<\/h5>\n<\/p>\n<p><p>\u5728\u4f60\u7684shell\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">eval &quot;$(direnv hook bash)&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>\u521b\u5efa<code>.envrc<\/code>\u6587\u4ef6<\/h5>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a<code>.envrc<\/code>\u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">layout python python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0cDirenv\u4f1a\u81ea\u52a8\u52a0\u8f7d\u73af\u5883\u53d8\u91cf\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>direnv allow<\/code>\u547d\u4ee4\u6765\u5141\u8bb8\u52a0\u8f7d\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8bbe\u7f6e\u5168\u5c40Python\u89e3\u91ca\u5668\u8def\u5f84<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u4f60\u53ef\u80fd\u9700\u8981\u5728\u63a7\u5236\u53f0\u4e2d\u4e34\u65f6\u5207\u6362Python\u89e3\u91ca\u5668\uff0c\u800c\u4e0d\u662f\u521b\u5efa\u865a\u62df\u73af\u5883\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>PYTHONPATH<\/code>\u73af\u5883\u53d8\u91cf\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h4>1. \u8bbe\u7f6ePYTHONPATH<\/h4>\n<\/p>\n<p><p>\u5728Unix\u6216MacOS\u4e0a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export PYTHONPATH=\/path\/to\/python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728Windows\u4e0a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">set PYTHONPATH=C:\\path\\to\\python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4f1a\u5c06<code>PYTHONPATH<\/code>\u8bbe\u7f6e\u4e3a\u4f60\u6307\u5b9a\u7684Python\u89e3\u91ca\u5668\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h4>2. \u4e34\u65f6\u5207\u6362Python\u89e3\u91ca\u5668<\/h4>\n<\/p>\n<p><p>\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9aPython\u89e3\u91ca\u5668\u7684\u8def\u5f84\u6765\u4e34\u65f6\u5207\u6362\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">\/path\/to\/python myscript.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4f60\u53ea\u9700\u8981\u5728\u67d0\u4e9b\u7279\u5b9a\u60c5\u51b5\u4e0b\u4f7f\u7528\u4e0d\u540c\u7684Python\u89e3\u91ca\u5668\uff0c\u800c\u4e0d\u9700\u8981\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u65e0\u8bba\u662f\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001Conda\u8fd8\u662f\u73af\u5883\u53d8\u91cf\u7ba1\u7406\u5de5\u5177\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\u3002<strong>\u865a\u62df\u73af\u5883\u548cConda\u662f\u6700\u5e38\u89c1\u548c\u63a8\u8350\u7684\u65b9\u6cd5<\/strong>\uff0c\u56e0\u4e3a\u5b83\u4eec\u4e0d\u4ec5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7ba1\u7406\u548c\u9694\u79bb\u9879\u76ee\u4f9d\u8d56\uff0c\u8fd8\u53ef\u4ee5\u7b80\u5316\u5f00\u53d1\u6d41\u7a0b\u3002<strong>\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7ba1\u7406\u5de5\u5177<\/strong>\u5219\u9002\u7528\u4e8e\u9700\u8981\u81ea\u52a8\u52a0\u8f7d\u548c\u5378\u8f7d\u73af\u5883\u53d8\u91cf\u7684\u60c5\u51b5\u3002<strong>\u8bbe\u7f6e\u5168\u5c40Python\u89e3\u91ca\u5668\u8def\u5f84<\/strong>\u9002\u7528\u4e8e\u4e34\u65f6\u5207\u6362Python\u89e3\u91ca\u5668\u7684\u60c5\u51b5\u3002\u4e86\u89e3\u8fd9\u4e9b\u65b9\u6cd5\u5e76\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u5347\u4f60\u7684\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u63a7\u5236\u53f0\u4e2d\u67e5\u770b\u5f53\u524d\u7684Python\u73af\u5883\u53d8\u91cf\uff1f<\/strong><br \/>\u8981\u67e5\u770b\u5f53\u524d\u7684Python\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 <code>echo %PATH%<\/code>\uff08\u5728Windows\u4e0a\uff09\u6216 <code>echo $PATH<\/code>\uff08\u5728Linux\u6216MacOS\u4e0a\uff09\u3002\u8fd9\u5c06\u663e\u793a\u6240\u6709\u73af\u5883\u53d8\u91cf\uff0c\u5176\u4e2d\u5305\u62ecPython\u7684\u5b89\u88c5\u8def\u5f84\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528Python\u81ea\u8eab\u7684\u547d\u4ee4\uff0c\u8f93\u5165 <code>python -c &quot;import sys; print(sys.path)&quot;<\/code>\uff0c\u8fd9\u5c06\u663e\u793aPython\u5f53\u524d\u4f7f\u7528\u7684\u6a21\u5757\u641c\u7d22\u8def\u5f84\u3002<\/p>\n<p><strong>\u5207\u6362Python\u73af\u5883\u53d8\u91cf\u5bf9\u6211\u7684\u9879\u76ee\u6709\u4ec0\u4e48\u5f71\u54cd\uff1f<\/strong><br \/>\u5207\u6362Python\u73af\u5883\u53d8\u91cf\u4f1a\u76f4\u63a5\u5f71\u54cd\u5230\u4f60\u7684\u9879\u76ee\u6240\u4f7f\u7528\u7684Python\u7248\u672c\u548c\u5e93\u3002\u5982\u679c\u4f60\u8bbe\u7f6e\u4e86\u65b0\u7684\u73af\u5883\u53d8\u91cf\uff0c\u7cfb\u7edf\u5c06\u4f1a\u4f18\u5148\u4f7f\u7528\u8be5\u73af\u5883\u4e2d\u7684Python\u89e3\u91ca\u5668\u548c\u76f8\u5173\u5305\uff0c\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u4e0d\u540c\u7684\u9879\u76ee\u4e4b\u95f4\u9694\u79bb\u4f9d\u8d56\uff0c\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Windows\u548cLinux\u7cfb\u7edf\u4e2d\u5207\u6362Python\u73af\u5883\uff1f<\/strong><br \/>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u4f7f\u7528 <code>set<\/code> \u547d\u4ee4\u6765\u4e34\u65f6\u4fee\u6539\u73af\u5883\u53d8\u91cf\uff0c\u4f8b\u5982 <code>set PATH=C:\\Python39;%PATH%<\/code> \u6765\u4f18\u5148\u4f7f\u7528Python 3.9\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>export<\/code> \u547d\u4ee4\uff0c\u4f8b\u5982 <code>export PATH=\/usr\/bin\/python3.9:$PATH<\/code>\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u5de5\u5177\uff08\u5982venv\u6216conda\uff09\u4e5f\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u5f0f\u6765\u7ba1\u7406\u548c\u5207\u6362Python\u73af\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u63a7\u5236\u53f0\u5207\u6362python\u73af\u5883\u53d8\u91cf\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u4f7f\u7528conda\u3001\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7ba1\u7406\u5de5\u5177\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u6700\u5e38\u89c1 [&hellip;]","protected":false},"author":3,"featured_media":1107577,"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\/1107570"}],"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=1107570"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1107570\/revisions"}],"predecessor-version":[{"id":1107581,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1107570\/revisions\/1107581"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1107577"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1107570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1107570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1107570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}