{"id":1165815,"date":"2025-01-15T15:24:57","date_gmt":"2025-01-15T07:24:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1165815.html"},"modified":"2025-01-15T15:25:00","modified_gmt":"2025-01-15T07:25:00","slug":"python%e5%a6%82%e4%bd%95%e7%a6%bb%e7%ba%bf%e7%bc%96%e7%a8%8b%e8%bd%af%e4%bb%b6%e4%b8%8b%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1165815.html","title":{"rendered":"python\u5982\u4f55\u79bb\u7ebf\u7f16\u7a0b\u8f6f\u4ef6\u4e0b\u8f7d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25210051\/1fa9101d-1296-467f-baae-bb6419b35b8b.webp\" alt=\"python\u5982\u4f55\u79bb\u7ebf\u7f16\u7a0b\u8f6f\u4ef6\u4e0b\u8f7d\" \/><\/p>\n<p><p> <strong>Python\u79bb\u7ebf\u7f16\u7a0b\u8f6f\u4ef6\u4e0b\u8f7d\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\uff1a\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u4e0b\u8f7d\u3001\u4ece\u7b2c\u4e09\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u3001\u4f7f\u7528\u79bb\u7ebf\u5b89\u88c5\u5de5\u5177\u3001\u4ece\u5176\u4ed6\u8bbe\u5907\u590d\u5236\u5b89\u88c5\u5305\u3002<\/strong>\u5176\u4e2d\uff0c\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\u662f\u6700\u76f4\u63a5\u548c\u53ef\u9760\u7684\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\uff1a\u9996\u5148\uff0c\u4f60\u9700\u8981\u8bbf\u95eePython\u5b98\u7f51\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E3%80%82%E5%9C%A8%E4%B8%8B%E8%BD%BD%E9%A1%B5%E9%9D%A2%EF%BC%8C%E4%BD%A0%E5%8F%AF%E4%BB%A5%E9%80%89%E6%8B%A9%E9%80%82%E5%90%88%E4%BD%A0%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84Python%E7%89%88%E6%9C%AC%E8%BF%9B%E8%A1%8C%E4%B8%8B%E8%BD%BD%E3%80%82%E4%B8%8B%E8%BD%BD%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E8%BF%90%E8%A1%8C%E5%AE%89%E8%A3%85%E5%8C%85%E5%B9%B6%E6%8C%89%E7%85%A7%E6%8F%90%E7%A4%BA%E8%BF%9B%E8%A1%8C%E5%AE%89%E8%A3%85%E3%80%82%E8%BF%99%E4%B8%AA%E6%96%B9%E6%B3%95%E7%A1%AE%E4%BF%9D%E4%BD%A0%E4%B8%8B%E8%BD%BD%E7%9A%84%E6%98%AF%E5%AE%98%E6%96%B9%E7%89%88%E6%9C%AC%EF%BC%8C%E5%AE%89%E5%85%A8%E5%8F%AF%E9%9D%A0%E3%80%82\">https:\/\/www.python.org\/\uff09\u3002\u5728\u4e0b\u8f7d\u9875\u9762\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u7248\u672c\u8fdb\u884c\u4e0b\u8f7d\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884c\u5b89\u88c5\u5305\u5e76\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u786e\u4fdd\u4f60\u4e0b\u8f7d\u7684\u662f\u5b98\u65b9\u7248\u672c\uff0c\u5b89\u5168\u53ef\u9760\u3002<\/a><\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305<\/h2>\n<\/p>\n<p><h3>1\u3001\u8bbf\u95eePython\u5b98\u7f51<\/h3>\n<\/p>\n<p><p>Python\u5b98\u7f51\u662f\u83b7\u53d6Python\u5b89\u88c5\u5305\u7684\u6700\u4f73\u6765\u6e90\u3002\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u201c<a href=\"https:\/\/www.python.org\/%E2%80%9D%EF%BC%8C%E8%BF%9B%E5%85%A5Python%E5%AE%98%E6%96%B9%E7%BD%91%E7%AB%99%E3%80%82\">https:\/\/www.python.org\/\u201d\uff0c\u8fdb\u5165Python\u5b98\u65b9\u7f51\u7ad9\u3002<\/a><\/p>\n<\/p>\n<p><h3>2\u3001\u9009\u62e9\u9002\u5408\u7684Python\u7248\u672c<\/h3>\n<\/p>\n<p><p>\u5728\u5b98\u7f51\u9996\u9875\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a\u201cDownloads\u201d\u9009\u9879\uff0c\u70b9\u51fb\u5b83\uff0c\u4f60\u4f1a\u770b\u5230\u63a8\u8350\u4e0b\u8f7d\u7684\u7248\u672c\u3002\u901a\u5e38\uff0c\u7f51\u7ad9\u4f1a\u81ea\u52a8\u8bc6\u522b\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u5e76\u63a8\u8350\u5408\u9002\u7684\u7248\u672c\u3002\u5982\u679c\u4f60\u9700\u8981\u5176\u4ed6\u7248\u672c\uff0c\u53ef\u4ee5\u70b9\u51fb\u201cView the full list of downloads\u201d\u67e5\u770b\u6240\u6709\u53ef\u7528\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>3\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5<\/h3>\n<\/p>\n<p><p>\u70b9\u51fb\u4e0b\u8f7d\u94fe\u63a5\uff0c\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u5b89\u88c5\u5305\u3002\u5b89\u88c5\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u6309\u7167\u63d0\u793a\u70b9\u51fb\u201cNext\u201d\u5373\u53ef\u3002\u6ce8\u610f\uff0c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u6700\u597d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002<\/p>\n<\/p>\n<p><h3>4\u3001\u9a8c\u8bc1\u5b89\u88c5<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08MacOS\/Linux\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216\u8005<code>python3 --version<\/code>\uff0c\u5982\u679c\u663e\u793a\u51fa\u4f60\u5b89\u88c5\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u4e0b\u8f7d<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f7f\u7528Anaconda<\/h3>\n<\/p>\n<p><p>Anaconda\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u6570\u636e\u79d1\u5b66\u5e73\u53f0\uff0c\u5b83\u81ea\u5e26\u4e86Python\u548c\u5927\u91cf\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\u3002\u4f60\u53ef\u4ee5\u4eceAnaconda\u5b98\u7f51\uff08<a href=\"https:\/\/www.anaconda.com\/%EF%BC%89%E4%B8%8B%E8%BD%BDAnaconda%E7%9A%84%E7%A6%BB%E7%BA%BF%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">https:\/\/www.anaconda.com\/\uff09\u4e0b\u8f7dAnaconda\u7684\u79bb\u7ebf\u5b89\u88c5\u5305\u3002<\/a><\/p>\n<\/p>\n<p><h3>2\u3001\u4f7f\u7528pip\u4e0b\u8f7d\u79bb\u7ebf\u5305<\/h3>\n<\/p>\n<p><p>pip\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u4e0b\u8f7dPython\u5305\u5e76\u8fdb\u884c\u79bb\u7ebf\u5b89\u88c5\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u6709\u7f51\u7edc\u7684\u73af\u5883\u4e0b\u4f7f\u7528pip\u4e0b\u8f7d\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip download package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a.whl\u6587\u4ef6\u3002\u5c06\u8fd9\u4e2a\u6587\u4ef6\u590d\u5236\u5230\u6ca1\u6709\u7f51\u7edc\u7684\u7535\u8111\u4e0a\uff0c\u7136\u540e\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install package_name.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u4f7f\u7528pipenv\u4e0b\u8f7d\u79bb\u7ebf\u5305<\/h3>\n<\/p>\n<p><p>pipenv\u662f\u4e00\u4e2aPython\u5f00\u53d1\u73af\u5883\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u81ea\u52a8\u521b\u5efa\u548c\u7ba1\u7406Python\u865a\u62df\u73af\u5883\uff0c\u5e76\u4e14\u53ef\u4ee5\u5c06\u6240\u9700\u7684\u5305\u4e0b\u8f7d\u5230\u79bb\u7ebf\u5b89\u88c5\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u6709\u7f51\u7edc\u7684\u73af\u5883\u4e0b\u4f7f\u7528pipenv\u4e0b\u8f7d\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pipenv lock --requirements &gt; requirements.txt<\/p>\n<p>pip download -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5c06\u8fd9\u4e9b\u5305\u590d\u5236\u5230\u6ca1\u6709\u7f51\u7edc\u7684\u7535\u8111\u4e0a\uff0c\u4f7f\u7528pipenv\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pipenv install --ignore-pipfile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u4ece\u7b2c\u4e09\u65b9\u7f51\u7ad9\u4e0b\u8f7d<\/h2>\n<\/p>\n<p><h3>1\u3001Python Extension Packages for Windows &#8211; Christoph Gohlke<\/h3>\n<\/p>\n<p><p>Christoph Gohlke\u7684\u7f51\u7ad9\uff08<a href=\"https:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/%EF%BC%89%E6%8F%90%E4%BE%9B%E4%BA%86%E5%A4%A7%E9%87%8F%E7%9A%84Python%E6%89%A9%E5%B1%95%E5%8C%85%E7%9A%84Windows%E9%A2%84%E7%BC%96%E8%AF%91%E7%89%88%E6%9C%AC%E3%80%82%E4%BD%A0%E5%8F%AF%E4%BB%A5%E8%AE%BF%E9%97%AE%E8%BF%99%E4%B8%AA%E7%BD%91%E7%AB%99%EF%BC%8C%E6%89%BE%E5%88%B0%E4%BD%A0%E9%9C%80%E8%A6%81%E7%9A%84%E5%8C%85%E5%B9%B6%E4%B8%8B%E8%BD%BD%E3%80%82\">https:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/\uff09\u63d0\u4f9b\u4e86\u5927\u91cf\u7684Python\u6269\u5c55\u5305\u7684Windows\u9884\u7f16\u8bd1\u7248\u672c\u3002\u4f60\u53ef\u4ee5\u8bbf\u95ee\u8fd9\u4e2a\u7f51\u7ad9\uff0c\u627e\u5230\u4f60\u9700\u8981\u7684\u5305\u5e76\u4e0b\u8f7d\u3002<\/a><\/p>\n<\/p>\n<p><h3>2\u3001\u5176\u4ed6\u7b2c\u4e09\u65b9\u7f51\u7ad9<\/h3>\n<\/p>\n<p><p>\u6709\u5f88\u591a\u7b2c\u4e09\u65b9\u7f51\u7ad9\u4e5f\u63d0\u4f9bPython\u5305\u7684\u4e0b\u8f7d\uff0c\u6bd4\u5982PyPI\uff08<a href=\"https:\/\/pypi.org\/%EF%BC%89%E7%AD%89%E3%80%82%E4%BD%A0%E5%8F%AF%E4%BB%A5%E5%9C%A8%E8%BF%99%E4%BA%9B%E7%BD%91%E7%AB%99%E4%B8%8A%E6%90%9C%E7%B4%A2%E5%B9%B6%E4%B8%8B%E8%BD%BD%E4%BD%A0%E9%9C%80%E8%A6%81%E7%9A%84%E5%8C%85%E3%80%82\">https:\/\/pypi.org\/\uff09\u7b49\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e9b\u7f51\u7ad9\u4e0a\u641c\u7d22\u5e76\u4e0b\u8f7d\u4f60\u9700\u8981\u7684\u5305\u3002<\/a><\/p>\n<\/p>\n<p><h2>\u56db\u3001\u4f7f\u7528\u79bb\u7ebf\u5b89\u88c5\u5de5\u5177<\/h2>\n<\/p>\n<p><h3>1\u3001pip2pi<\/h3>\n<\/p>\n<p><p>pip2pi\u662f\u4e00\u4e2aPython\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06PyPI\u5305\u4e0b\u8f7d\u5230\u672c\u5730\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684HTTP\u670d\u52a1\u5668\u6765\u63d0\u4f9b\u8fd9\u4e9b\u5305\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u6709\u7f51\u7edc\u7684\u73af\u5883\u4e0b\u4f7f\u7528pip2pi\u4e0b\u8f7d\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip2pi \/path\/to\/packages package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5c06\u8fd9\u4e9b\u5305\u590d\u5236\u5230\u6ca1\u6709\u7f51\u7edc\u7684\u7535\u8111\u4e0a\uff0c\u4f7f\u7528pip2pi\u63d0\u4f9b\u7684HTTP\u670d\u52a1\u5668\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip2pi-server \/path\/to\/packages<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001pew<\/h3>\n<\/p>\n<p><p>pew\u662f\u4e00\u4e2aPython\u73af\u5883\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u521b\u5efa\u548c\u7ba1\u7406Python\u865a\u62df\u73af\u5883\uff0c\u5e76\u4e14\u53ef\u4ee5\u5c06\u6240\u9700\u7684\u5305\u4e0b\u8f7d\u5230\u79bb\u7ebf\u5b89\u88c5\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u6709\u7f51\u7edc\u7684\u73af\u5883\u4e0b\u4f7f\u7528pew\u4e0b\u8f7d\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pew new myenv<\/p>\n<p>pew in myenv pip download package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5c06\u8fd9\u4e9b\u5305\u590d\u5236\u5230\u6ca1\u6709\u7f51\u7edc\u7684\u7535\u8111\u4e0a\uff0c\u4f7f\u7528pew\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pew in myenv pip install package_name.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u4ece\u5176\u4ed6\u8bbe\u5907\u590d\u5236\u5b89\u88c5\u5305<\/h2>\n<\/p>\n<p><h3>1\u3001\u4eceU\u76d8\u6216\u79fb\u52a8\u786c\u76d8\u590d\u5236<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u6709\u4e00\u53f0\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u548c\u6240\u9700\u5305\u7684\u7535\u8111\uff0c\u4f60\u53ef\u4ee5\u5c06\u8fd9\u4e9b\u5305\u590d\u5236\u5230U\u76d8\u6216\u79fb\u52a8\u786c\u76d8\u4e0a\uff0c\u7136\u540e\u518d\u590d\u5236\u5230\u9700\u8981\u5b89\u88c5\u7684\u7535\u8111\u4e0a\u8fdb\u884c\u5b89\u88c5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u4f46\u662f\u9700\u8981\u4f60\u6709\u4e00\u53f0\u5df2\u7ecf\u914d\u7f6e\u597d\u7684\u7535\u8111\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u901a\u8fc7\u5c40\u57df\u7f51\u5171\u4eab<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u540c\u4e00\u4e2a\u5c40\u57df\u7f51\u5185\u6709\u4e00\u53f0\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u548c\u6240\u9700\u5305\u7684\u7535\u8111\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5c40\u57df\u7f51\u5171\u4eab\u7684\u65b9\u5f0f\uff0c\u5c06\u8fd9\u4e9b\u5305\u590d\u5236\u5230\u9700\u8981\u5b89\u88c5\u7684\u7535\u8111\u4e0a\u3002\u8fd9\u4e2a\u65b9\u6cd5\u548c\u4f7f\u7528U\u76d8\u6216\u79fb\u52a8\u786c\u76d8\u7c7b\u4f3c\uff0c\u4f46\u662f\u66f4\u52a0\u5feb\u6377\u3002<\/p>\n<\/p>\n<p><h2>\u516d\u3001\u5b89\u88c5Python\u865a\u62df\u73af\u5883<\/h2>\n<\/p>\n<p><h3>1\u3001\u521b\u5efa\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u597dPython\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>venv<\/code>\u6a21\u5757\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\u3002\u865a\u62df\u73af\u5883\u53ef\u4ee5\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u5305\u4f9d\u8d56\uff0c\u907f\u514d\u51b2\u7a81\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>myenv<\/code>\u7684\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u521b\u5efa\u597d\u865a\u62df\u73af\u5883\u540e\uff0c\u9700\u8981\u6fc0\u6d3b\u5b83\u3002\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">myenv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MacOS\u548cLinux\u7cfb\u7edf\u4e0a\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\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\u540e\uff0c\u4f60\u4f1a\u770b\u5230\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u524d\u9762\u591a\u4e86\u4e00\u4e2a<code>(myenv)<\/code>\uff0c\u8868\u793a\u865a\u62df\u73af\u5883\u5df2\u7ecf\u6fc0\u6d3b\u3002<\/p>\n<\/p>\n<p><h3>3\u3001\u5b89\u88c5\u6240\u9700\u5305<\/h3>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u6240\u9700\u7684\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e9b\u5305\u4f1a\u5b89\u88c5\u5230\u865a\u62df\u73af\u5883\u4e2d\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40\u7684Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>4\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u50cf\u5728\u5168\u5c40\u73af\u5883\u4e2d\u4e00\u6837\u4f7f\u7528Python\u548cpip\u3002\u5f53\u4f60\u4e0d\u518d\u9700\u8981\u4f7f\u7528\u865a\u62df\u73af\u5883\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\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><h2>\u4e03\u3001\u914d\u7f6ePython\u73af\u5883\u53d8\u91cf<\/h2>\n<\/p>\n<p><h3>1\u3001\u6dfb\u52a0Python\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u65f6\uff0c\u6700\u597d\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u5982\u679c\u4f60\u5728\u5b89\u88c5\u65f6\u6ca1\u6709\u52fe\u9009\u8fd9\u4e2a\u9009\u9879\uff0c\u53ef\u4ee5\u624b\u52a8\u5c06Python\u6dfb\u52a0\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u53f3\u952e\u70b9\u51fb\u201c\u8ba1\u7b97\u673a\u201d\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u5728\u201c\u7cfb\u7edf\u5c5e\u6027\u201d\u7a97\u53e3\u4e2d\u70b9\u51fb\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u4e2d\u627e\u5230\u201cPath\u201d\u53d8\u91cf\uff0c\u70b9\u51fb\u201c\u7f16\u8f91\u201d\uff0c\u5728\u53d8\u91cf\u503c\u4e2d\u6dfb\u52a0Python\u7684\u5b89\u88c5\u8def\u5f84\uff08\u4f8b\u5982<code>C:\\Python39<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><p>\u5728MacOS\u548cLinux\u7cfb\u7edf\u4e0a\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u7f16\u8f91<code>~\/.bash_profile<\/code>\u6587\u4ef6\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export PATH=&quot;\/usr\/local\/bin\/python3:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source ~\/.bash_profile<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u9a8c\u8bc1\u73af\u5883\u53d8\u91cf\u914d\u7f6e<\/h3>\n<\/p>\n<p><p>\u914d\u7f6e\u597d\u73af\u5883\u53d8\u91cf\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>python --version<\/code>\u6216\u8005<code>python3 --version<\/code>\uff0c\u5982\u679c\u663e\u793a\u51fa\u4f60\u5b89\u88c5\u7684\u7248\u672c\u53f7\uff0c\u8bf4\u660e\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h2>\u516b\u3001\u5b89\u88c5Python\u5f00\u53d1\u5de5\u5177<\/h2>\n<\/p>\n<p><h3>1\u3001\u5b89\u88c5IDE\u6216\u4ee3\u7801\u7f16\u8f91\u5668<\/h3>\n<\/p>\n<p><p>\u4e00\u4e2a\u597d\u7684IDE\u6216\u4ee3\u7801\u7f16\u8f91\u5668\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u5f00\u53d1\u6548\u7387\u3002\u5e38\u89c1\u7684Python\u5f00\u53d1\u5de5\u5177\u6709PyCharm\u3001Visual Studio Code\u3001Sublime Text\u7b49\u3002<\/p>\n<\/p>\n<p><h4>PyCharm<\/h4>\n<\/p>\n<p><p>PyCharm\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684Python IDE\uff0c\u652f\u6301\u4ee3\u7801\u8865\u5168\u3001\u8c03\u8bd5\u3001\u7248\u672c\u63a7\u5236\u7b49\u529f\u80fd\u3002\u4f60\u53ef\u4ee5\u4ecePyCharm\u5b98\u7f51\uff08<a href=\"https:\/\/www.jetbrains.com\/pycharm\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85PyCharm%E3%80%82\">https:\/\/www.jetbr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns.com\/pycharm\/\uff09\u4e0b\u8f7d\u5e76\u5b89\u88c5PyCharm\u3002<\/a><\/p>\n<\/p>\n<p><h4>Visual Studio Code<\/h4>\n<\/p>\n<p><p>Visual Studio Code\u662f\u4e00\u4e2a\u514d\u8d39\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u4f60\u53ef\u4ee5\u4eceVisual Studio Code\u5b98\u7f51\uff08<a href=\"https:\/\/code.visualstudio.com\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85Visual\">https:\/\/code.visualstudio.com\/\uff09\u4e0b\u8f7d\u5e76\u5b89\u88c5Visual<\/a> Studio Code\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8fd8\u9700\u8981\u5b89\u88c5Python\u6269\u5c55\uff0c\u6253\u5f00Visual Studio Code\uff0c\u70b9\u51fb\u5de6\u4fa7\u7684\u6269\u5c55\u56fe\u6807\uff0c\u641c\u7d22\u201cPython\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u3002<\/p>\n<\/p>\n<p><h4>Sublime Text<\/h4>\n<\/p>\n<p><p>Sublime Text\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u4f60\u53ef\u4ee5\u4eceSublime Text\u5b98\u7f51\uff08<a href=\"https:\/\/www.sublimetext.com\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85Sublime\">https:\/\/www.sublimetext.com\/\uff09\u4e0b\u8f7d\u5e76\u5b89\u88c5Sublime<\/a> Text\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7Package Control\u5b89\u88c5Python\u6269\u5c55\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u914d\u7f6ePython\u5f00\u53d1\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u597dIDE\u6216\u4ee3\u7801\u7f16\u8f91\u5668\u540e\uff0c\u8fd8\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\uff0c\u4f7f\u5176\u66f4\u9002\u5408Python\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><h4>\u914d\u7f6ePyCharm<\/h4>\n<\/p>\n<p><p>\u6253\u5f00PyCharm\uff0c\u70b9\u51fb\u201cFile\u201d-&gt;\u201cSettings\u201d\uff0c\u5728\u201cProject: &lt;\u9879\u76ee\u540d\u79f0&gt;\u201d\u4e0b\uff0c\u9009\u62e9\u201cProject Interpreter\u201d\uff0c\u70b9\u51fb\u53f3\u4fa7\u7684\u9f7f\u8f6e\u56fe\u6807\uff0c\u9009\u62e9\u201cAdd&#8230;\u201d\uff0c\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u9009\u62e9Python\u89e3\u91ca\u5668\u7684\u8def\u5f84\u3002\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201cOK\u201d\u4fdd\u5b58\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><h4>\u914d\u7f6eVisual Studio Code<\/h4>\n<\/p>\n<p><p>\u6253\u5f00Visual Studio Code\uff0c\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684\u9f7f\u8f6e\u56fe\u6807\uff0c\u9009\u62e9\u201cSettings\u201d\uff0c\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cPython Path\u201d\uff0c\u70b9\u51fb\u201cEdit in settings.json\u201d\uff0c\u5728\u6253\u5f00\u7684\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-json\">{<\/p>\n<p>    &quot;python.pythonPath&quot;: &quot;\/usr\/local\/bin\/python3&quot;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0cVisual Studio Code\u4f1a\u81ea\u52a8\u4f7f\u7528\u6307\u5b9a\u7684Python\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<p><h4>\u914d\u7f6eSublime Text<\/h4>\n<\/p>\n<p><p>\u6253\u5f00Sublime Text\uff0c\u70b9\u51fb\u201cPreferences\u201d-&gt;\u201cSettings\u201d\uff0c\u5728\u6253\u5f00\u7684\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-json\">{<\/p>\n<p>    &quot;python_interpreter&quot;: &quot;\/usr\/local\/bin\/python3&quot;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0cSublime Text\u4f1a\u81ea\u52a8\u4f7f\u7528\u6307\u5b9a\u7684Python\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<p><h2>\u4e5d\u3001\u7f16\u5199\u7b2c\u4e00\u4e2aPython\u7a0b\u5e8f<\/h2>\n<\/p>\n<p><h3>1\u3001\u521b\u5efaPython\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5728IDE\u6216\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Python\u6587\u4ef6\uff0c\u547d\u540d\u4e3a<code>hello.py<\/code>\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u7f16\u5199\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728<code>hello.py<\/code>\u6587\u4ef6\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u8fd0\u884c\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\uff0c\u8fdb\u5165\u5230<code>hello.py<\/code>\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u770b\u5230\u8f93\u51fa\u201cHello, World!\u201d\u8bf4\u660e\u4f60\u7684Python\u73af\u5883\u914d\u7f6e\u6210\u529f\u3002<\/p>\n<\/p>\n<p><h2>\u5341\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u6210\u529f\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u8fdb\u884c\u79bb\u7ebf\u7f16\u7a0b\u3002\u65e0\u8bba\u662f\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u4e0b\u8f7d\u3001\u4ece\u7b2c\u4e09\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u3001\u4f7f\u7528\u79bb\u7ebf\u5b89\u88c5\u5de5\u5177\uff0c\u8fd8\u662f\u4ece\u5176\u4ed6\u8bbe\u5907\u590d\u5236\u5b89\u88c5\u5305\uff0c\u90fd\u53ef\u4ee5\u6ee1\u8db3\u4f60\u5728\u6ca1\u6709\u7f51\u7edc\u7684\u73af\u5883\u4e0b\u8fdb\u884cPython\u7f16\u7a0b\u7684\u9700\u6c42\u3002\u540c\u65f6\uff0c\u914d\u7f6e\u597dPython\u73af\u5883\u53d8\u91cf\u548c\u5f00\u53d1\u5de5\u5177\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u5f00\u53d1\u6548\u7387\u3002\u5e0c\u671b\u8fd9\u4e9b\u65b9\u6cd5\u548c\u6280\u5de7\u80fd\u5e2e\u52a9\u4f60\u987a\u5229\u8fdb\u884cPython\u79bb\u7ebf\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u6ca1\u6709\u7f51\u7edc\u8fde\u63a5\u7684\u60c5\u51b5\u4e0b\u4e0b\u8f7dPython\u7f16\u7a0b\u73af\u5883\uff1f<\/strong><br \/>\u8981\u5728\u79bb\u7ebf\u72b6\u6001\u4e0b\u4f7f\u7528Python\u7f16\u7a0b\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\uff0c\u4e0b\u8f7d\u9002\u5408\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u5305\u3002\u786e\u4fdd\u9009\u62e9\u5bf9\u5e94\u7684\u7248\u672c\uff0c\u4f8b\u5982Windows\u3001macOS\u6216Linux\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u6ca1\u6709\u7f51\u7edc\u7684\u60c5\u51b5\u4e0b\u5b89\u88c5Python\u3002\u6b64\u5916\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4e0b\u8f7d\u4e00\u4e9bIDE\uff08\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\uff0c\u5982PyCharm\u6216VS Code\u7684\u79bb\u7ebf\u5b89\u88c5\u5305\uff0c\u4ee5\u4fbf\u4e8e\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5de5\u5177\u6765\u652f\u6301\u79bb\u7ebfPython\u7f16\u7a0b\uff1f<\/strong><br \/>\u5728\u79bb\u7ebf\u7f16\u7a0b\u65f6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5de5\u5177\u6765\u63d0\u9ad8\u6548\u7387\u3002\u4f8b\u5982\uff0cJupyter Notebook\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u548c\u5206\u4eab\u6587\u6863\uff0cPyCharm\u63d0\u4f9b\u4e30\u5bcc\u7684\u5f00\u53d1\u529f\u80fd\uff0cAnaconda\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406Python\u5305\u548c\u73af\u5883\u3002\u786e\u4fdd\u5728\u8054\u7f51\u65f6\u9884\u5148\u5b89\u88c5\u597d\u8fd9\u4e9b\u5de5\u5177\u53ca\u5176\u4f9d\u8d56\u9879\uff0c\u4ee5\u4fbf\u79bb\u7ebf\u4f7f\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u79bb\u7ebf\u72b6\u6001\u4e0b\u5b89\u88c5Python\u5e93\uff1f<\/strong><br \/>\u5728\u79bb\u7ebf\u72b6\u6001\u4e0b\u5b89\u88c5Python\u5e93\u7684\u4e00\u4e2a\u6709\u6548\u65b9\u6cd5\u662f\u4f7f\u7528pip\u5de5\u5177\u3002\u60a8\u53ef\u4ee5\u5728\u8054\u7f51\u72b6\u6001\u4e0b\u4f7f\u7528\u547d\u4ee4<code>pip download package_name<\/code>\u4e0b\u8f7d\u6240\u9700\u7684\u5e93\u53ca\u5176\u4f9d\u8d56\u9879\u3002\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u5c06\u8fd9\u4e9b\u5e93\u6587\u4ef6\u62f7\u8d1d\u5230\u79bb\u7ebf\u8bbe\u5907\u4e0a\uff0c\u7136\u540e\u901a\u8fc7\u547d\u4ee4<code>pip install package_file.whl<\/code>\u8fdb\u884c\u5b89\u88c5\u3002\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u5728\u6ca1\u6709\u7f51\u7edc\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u8fd9\u4e9b\u5e93\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u79bb\u7ebf\u7f16\u7a0b\u8f6f\u4ef6\u4e0b\u8f7d\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\uff1a\u4ecePython\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u4e0b\u8f7d\u3001\u4ece\u7b2c\u4e09\u65b9\u7f51\u7ad9\u4e0b [&hellip;]","protected":false},"author":3,"featured_media":1165824,"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\/1165815"}],"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=1165815"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1165815\/revisions"}],"predecessor-version":[{"id":1165827,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1165815\/revisions\/1165827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1165824"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1165815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1165815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1165815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}