{"id":1020916,"date":"2024-12-27T13:17:03","date_gmt":"2024-12-27T05:17:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1020916.html"},"modified":"2024-12-27T13:17:10","modified_gmt":"2024-12-27T05:17:10","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8bconda%e7%9a%84python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1020916.html","title":{"rendered":"\u5982\u4f55\u67e5\u770bconda\u7684python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25163301\/c88c80e8-3ba1-4e42-8937-b7e392d60c34.webp\" alt=\"\u5982\u4f55\u67e5\u770bconda\u7684python\" \/><\/p>\n<p><p> \u8981\u67e5\u770bConda\u7684Python\u7248\u672c\uff0c\u53ef\u4ee5\u901a\u8fc7<strong>\u6fc0\u6d3bConda\u73af\u5883\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b\u3001\u67e5\u770b\u73af\u5883\u914d\u7f6e\u6587\u4ef6<\/strong>\u7b49\u65b9\u5f0f\u8fdb\u884c\u3002<strong>\u6fc0\u6d3bConda\u73af\u5883<\/strong>\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>python --version<\/code>\u6216\u8005<code>conda list<\/code>\u6765\u67e5\u770bPython\u7684\u7248\u672c\u4fe1\u606f\u3002<strong>\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b<\/strong>\u662f\u6700\u76f4\u63a5\u7684\u65b9\u5f0f\uff0c\u800c<strong>\u67e5\u770b\u73af\u5883\u914d\u7f6e\u6587\u4ef6<\/strong>\u5219\u9002\u7528\u4e8e\u9700\u8981\u4e86\u89e3\u66f4\u591a\u73af\u5883\u4f9d\u8d56\u65f6\u7684\u60c5\u51b5\u3002\u63a5\u4e0b\u6765\uff0c\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u901a\u8fc7\u8fd9\u4e9b\u65b9\u5f0f\u6765\u67e5\u770bConda\u4e2d\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6fc0\u6d3bConda\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Conda\u7ba1\u7406Python\u73af\u5883\u65f6\uff0c\u9996\u5148\u9700\u8981\u6fc0\u6d3b\u76f8\u5e94\u7684Conda\u73af\u5883\u3002\u6bcf\u4e2aConda\u73af\u5883\u53ef\u4ee5\u5305\u542b\u4e0d\u540c\u7248\u672c\u7684Python\u53ca\u5176\u4ed6\u4f9d\u8d56\u5e93\uff0c\u56e0\u6b64\u53ea\u6709\u5728\u6fc0\u6d3b\u76f8\u5e94\u73af\u5883\u540e\uff0c\u624d\u80fd\u51c6\u786e\u67e5\u770b\u5230\u8be5\u73af\u5883\u6240\u4f7f\u7528\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6fc0\u6d3b\u73af\u5883<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>conda activate your_env_name<\/code>\uff0c\u5c06<code>your_env_name<\/code>\u66ff\u6362\u4e3a\u4f60\u5e0c\u671b\u67e5\u770b\u7684\u73af\u5883\u540d\u79f0\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u73af\u5883\u540d\u79f0\uff0cConda\u5c06\u9ed8\u8ba4\u6fc0\u6d3b<code>base<\/code>\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770bPython\u7248\u672c<\/strong>\uff1a\u6fc0\u6d3b\u73af\u5883\u540e\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python -V<\/code>\uff0c\u53ef\u4ee5\u76f4\u63a5\u770b\u5230\u5f53\u524d\u6fc0\u6d3b\u73af\u5883\u4e0b\u7684Python\u7248\u672c\u3002\u8be5\u547d\u4ee4\u4f1a\u8fd4\u56de\u7c7b\u4f3c<code>Python 3.x.x<\/code>\u7684\u683c\u5f0f\uff0c\u5176\u4e2d<code>3.x.x<\/code>\u4ee3\u8868\u5177\u4f53\u7684\u7248\u672c\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u547d\u4ee4\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528Conda\u63d0\u4f9b\u7684\u591a\u79cd\u547d\u4ee4\u6765\u67e5\u770bPython\u7248\u672c\u53ca\u5176\u4ed6\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>conda list<\/strong>\uff1a\u6fc0\u6d3b\u73af\u5883\u540e\uff0c\u8f93\u5165<code>conda list<\/code>\u53ef\u4ee5\u5217\u51fa\u5f53\u524d\u73af\u5883\u4e2d\u6240\u6709\u5df2\u5b89\u88c5\u7684\u5305\u53ca\u5176\u7248\u672c\u3002\u5728\u5217\u8868\u4e2d\u67e5\u627e<code>python<\/code>\uff0c\u53ef\u4ee5\u770b\u5230Python\u7684\u7248\u672c\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>conda info<\/strong>\uff1a\u8f93\u5165<code>conda info<\/code>\u53ef\u4ee5\u83b7\u53d6\u5173\u4e8eConda\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u5305\u62ec\u5f53\u524d\u6fc0\u6d3b\u7684\u73af\u5883\u3001\u9ed8\u8ba4\u73af\u5883\u8def\u5f84\u7b49\u3002\u867d\u7136\u4e0d\u76f4\u63a5\u663e\u793aPython\u7248\u672c\uff0c\u4f46\u53ef\u4ee5\u5e2e\u52a9\u786e\u8ba4\u6fc0\u6d3b\u73af\u5883\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>conda env list<\/strong>\uff1a\u4f7f\u7528<code>conda env list<\/code>\u53ef\u4ee5\u67e5\u770b\u6240\u6709Conda\u73af\u5883\u7684\u5217\u8868\uff0c\u5e76\u6807\u8bb0\u51fa\u5f53\u524d\u6fc0\u6d3b\u7684\u73af\u5883\u3002\u867d\u7136\u8be5\u547d\u4ee4\u4e0d\u76f4\u63a5\u663e\u793a\u7248\u672c\u4fe1\u606f\uff0c\u4f46\u53ef\u4ee5\u5e2e\u52a9\u9a8c\u8bc1\u73af\u5883\u540d\u79f0\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u67e5\u770b\u73af\u5883\u914d\u7f6e\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u6bcf\u4e2aConda\u73af\u5883\u90fd\u6709\u4e00\u4e2a<code>environment.yml<\/code>\u6587\u4ef6\u6216<code>conda-meta<\/code>\u76ee\u5f55\u5b58\u50a8\u73af\u5883\u914d\u7f6e\u4fe1\u606f\uff0c\u8fd9\u4e9b\u6587\u4ef6\u4e2d\u53ef\u4ee5\u627e\u5230Python\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>environment.yml \u6587\u4ef6<\/strong>\uff1a\u5982\u679c\u5728\u521b\u5efa\u73af\u5883\u65f6\u4f7f\u7528\u4e86<code>environment.yml<\/code>\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u4e2d\u901a\u5e38\u5305\u542bPython\u7684\u7248\u672c\u7ea6\u675f\u3002\u67e5\u770b\u8be5\u6587\u4ef6\u53ef\u4ee5\u83b7\u53d6\u5230\u521b\u5efa\u73af\u5883\u65f6\u6307\u5b9a\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>conda-meta \u76ee\u5f55<\/strong>\uff1a\u5728\u73af\u5883\u76ee\u5f55\u4e0b\u7684<code>conda-meta<\/code>\u6587\u4ef6\u5939\u4e2d\uff0c\u6709\u4e00\u4e2a<code>history<\/code>\u6587\u4ef6\uff0c\u8bb0\u5f55\u4e86\u73af\u5883\u7684\u521b\u5efa\u548c\u4fee\u6539\u5386\u53f2\u3002\u6253\u5f00\u8be5\u6587\u4ef6\uff0c\u53ef\u4ee5\u770b\u5230Python\u5b89\u88c5\u7684\u7248\u672c\u8bb0\u5f55\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u901a\u8fc7Python\u89e3\u91ca\u5668\u67e5\u770b<\/h3>\n<\/p>\n<p><p>\u6fc0\u6d3bConda\u73af\u5883\u540e\uff0c\u76f4\u63a5\u8fdb\u5165Python\u89e3\u91ca\u5668\u4e5f\u662f\u67e5\u770bPython\u7248\u672c\u7684\u6709\u6548\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fdb\u5165Python\u89e3\u91ca\u5668<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\uff0c\u8fdb\u5165Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u7248\u672c\u4fe1\u606f<\/strong>\uff1a\u5728\u89e3\u91ca\u5668\u4e2d\u8f93\u5165<code>import sys<\/code>\u548c<code>sys.version<\/code>\uff0c\u53ef\u4ee5\u83b7\u53d6\u5230\u8be6\u7ec6\u7684Python\u7248\u672c\u4fe1\u606f\uff0c\u5305\u62ec\u7248\u672c\u53f7\u3001\u6784\u5efa\u65e5\u671f\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u901a\u8fc7Jupyter Notebook\u67e5\u770b<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Jupyter Notebook\u65f6\uff0c\u4e5f\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u4f7f\u7528\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8fd0\u884c\u4ee3\u7801\u5355\u5143<\/strong>\uff1a\u5728Notebook\u4e2d\u521b\u5efa\u4e00\u4e2a\u4ee3\u7801\u5355\u5143\uff0c\u8f93\u5165\u5982\u4e0bPython\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>print(sys.version)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6267\u884c\u4ee3\u7801\u5355\u5143\uff0c\u53ef\u4ee5\u76f4\u63a5\u770b\u5230Python\u7684\u7248\u672c\u53f7\u53ca\u5176\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u5185\u6838<\/strong>\uff1a\u5728Jupyter Notebook\u7684\u83dc\u5355\u4e2d\uff0c\u9009\u62e9<code>Kernel<\/code> -&gt; <code>Change kernel<\/code>\uff0c\u53ef\u4ee5\u770b\u5230\u5f53\u524dNotebook\u4f7f\u7528\u7684\u5185\u6838\u53ca\u5176Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u4f7f\u7528\u811a\u672c\u81ea\u52a8\u83b7\u53d6<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u81ea\u52a8\u5316\u83b7\u53d6Python\u7248\u672c\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u7f16\u5199Python\u811a\u672c\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199\u811a\u672c<\/strong>\uff1a\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>print(f&quot;Python version: {sys.version}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u811a\u672c\u4e3a<code>check_python_version.py<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884c\u811a\u672c<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u6fc0\u6d3b\u76f8\u5e94\u7684Conda\u73af\u5883\u540e\uff0c\u8fd0\u884c\u8be5\u811a\u672c\uff1a<code>python check_python_version.py<\/code>\u3002\u8fd9\u6837\u53ef\u4ee5\u5728\u4efb\u4f55\u73af\u5883\u4e0b\u5feb\u901f\u67e5\u770bPython\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u5728IDE\u4e2d\u67e5\u770b<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001VSCode\u7b49\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728IDE\u4e2d\u67e5\u770b\u5f53\u524d\u73af\u5883\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>PyCharm<\/strong>\uff1a\u5728PyCharm\u4e2d\uff0c\u6253\u5f00\u9879\u76ee\u8bbe\u7f6e\uff08<code>File<\/code> -&gt; <code>Settings<\/code>\uff09\uff0c\u5728<code>Project<\/code> -&gt; <code>Python Interpreter<\/code>\u4e2d\uff0c\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u9879\u76ee\u4f7f\u7528\u7684Python\u89e3\u91ca\u5668\u53ca\u5176\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>VSCode<\/strong>\uff1a\u5728VSCode\u4e2d\uff0c\u6309<code>Ctrl+Shift+P<\/code>\u6253\u5f00\u547d\u4ee4\u9762\u677f\uff0c\u8f93\u5165<code>Python: Select Interpreter<\/code>\uff0c\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u9879\u76ee\u4f7f\u7528\u7684Python\u89e3\u91ca\u5668\u53ca\u5176\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516b\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Conda\u7ba1\u7406Python\u73af\u5883\u65f6\uff0c\u9700\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u73af\u5883\u9694\u79bb<\/strong>\uff1a\u786e\u4fdd\u5728\u4e0d\u540c\u9879\u76ee\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684Conda\u73af\u5883\uff0c\u4ee5\u907f\u514d\u4f9d\u8d56\u51b2\u7a81\u3002\u6bcf\u4e2a\u73af\u5883\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7248\u672c\u7684Python\u53ca\u5e93\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u66f4\u65b0<\/strong>\uff1a\u53ca\u65f6\u66f4\u65b0Python\u548c\u5e93\u7684\u7248\u672c\uff0c\u4ee5\u83b7\u53d6\u6700\u65b0\u7279\u6027\u548c\u5b89\u5168\u8865\u4e01\u3002\u4f7f\u7528<code>conda update python<\/code>\u53ef\u4ee5\u66f4\u65b0Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u517c\u5bb9<\/strong>\uff1a\u5728\u66f4\u65b0Python\u6216\u5e93\u7248\u672c\u65f6\uff0c\u9700\u6ce8\u610f\u4e0e\u5176\u4ed6\u4f9d\u8d56\u7684\u517c\u5bb9\u6027\uff0c\u4ee5\u907f\u514d\u56e0\u4e0d\u517c\u5bb9\u5bfc\u81f4\u7684\u8fd0\u884c\u9519\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u591a\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u67e5\u770b\u548c\u7ba1\u7406Conda\u73af\u5883\u4e2d\u7684Python\u7248\u672c\u4fe1\u606f\uff0c\u786e\u4fdd\u5f00\u53d1\u548c\u8fd0\u884c\u73af\u5883\u7684\u4e00\u81f4\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u786e\u8ba4\u6211\u5f53\u524d\u4f7f\u7528\u7684conda\u73af\u5883\u4e2d\u7684Python\u7248\u672c\uff1f<\/strong><br \/>\u8981\u786e\u8ba4\u5f53\u524dconda\u73af\u5883\u4e2d\u7684Python\u7248\u672c\uff0c\u53ef\u4ee5\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<code>python --version<\/code> \u6216 <code>python -V<\/code>\u3002\u8fd9\u5c06\u8fd4\u56de\u5f53\u524d\u6fc0\u6d3b\u7684conda\u73af\u5883\u4e2d\u5b89\u88c5\u7684Python\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5728conda\u4e2d\u5982\u4f55\u5207\u6362\u5230\u4e0d\u540c\u7684Python\u7248\u672c\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u65b0\u7684conda\u73af\u5883\u5e76\u6307\u5b9a\u6240\u9700\u7684Python\u7248\u672c\u6765\u5b9e\u73b0\u5207\u6362\u3002\u4f7f\u7528\u547d\u4ee4\uff1a<code>conda create -n myenv python=3.8<\/code>\uff0c\u8fd9\u91cc\u7684<code>myenv<\/code>\u662f\u65b0\u73af\u5883\u7684\u540d\u79f0\uff0c<code>3.8<\/code>\u662f\u60a8\u60f3\u8981\u5b89\u88c5\u7684Python\u7248\u672c\u3002\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u4f7f\u7528<code>conda activate myenv<\/code>\u547d\u4ee4\u5207\u6362\u5230\u65b0\u73af\u5883\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u5728conda\u73af\u5883\u4e2d\u627e\u4e0d\u5230Python\uff0c\u5e94\u8be5\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><br \/>\u5982\u679c\u5728conda\u73af\u5883\u4e2d\u627e\u4e0d\u5230Python\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u8be5\u73af\u5883\u4e2d\u6ca1\u6709\u5b89\u88c5Python\u3002\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u547d\u4ee4<code>conda install python<\/code>\u6765\u5b89\u88c5Python\u5230\u5f53\u524d\u6fc0\u6d3b\u7684\u73af\u5883\u4e2d\u3002\u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728\uff0c\u68c0\u67e5\u73af\u5883\u662f\u5426\u6b63\u786e\u6fc0\u6d3b\uff0c\u6216\u8005\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u73af\u5883\u5e76\u91cd\u65b0\u5b89\u88c5Python\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u67e5\u770bConda\u7684Python\u7248\u672c\uff0c\u53ef\u4ee5\u901a\u8fc7\u6fc0\u6d3bConda\u73af\u5883\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b\u3001\u67e5\u770b\u73af\u5883\u914d\u7f6e\u6587\u4ef6\u7b49\u65b9\u5f0f\u8fdb\u884c\u3002\u6fc0 [&hellip;]","protected":false},"author":3,"featured_media":1020930,"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\/1020916"}],"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=1020916"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1020916\/revisions"}],"predecessor-version":[{"id":1020931,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1020916\/revisions\/1020931"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1020930"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1020916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1020916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1020916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}