{"id":1155649,"date":"2025-01-13T18:06:18","date_gmt":"2025-01-13T10:06:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1155649.html"},"modified":"2025-01-13T18:06:21","modified_gmt":"2025-01-13T10:06:21","slug":"unix%e5%a6%82%e4%bd%95%e7%9c%8bpython%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1155649.html","title":{"rendered":"unix\u5982\u4f55\u770bpython\u7248\u672c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25194239\/9c359575-2167-4bb1-95dd-46242ba10499.webp\" alt=\"unix\u5982\u4f55\u770bpython\u7248\u672c\" \/><\/p>\n<p><p> \u5728Unix\u7cfb\u7edf\u4e0a\u67e5\u770bPython\u7248\u672c\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec<strong>\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b\u3001\u68c0\u67e5Python\u5b89\u88c5\u8def\u5f84\u3001\u4f7f\u7528\u811a\u672c\u67e5\u770b\u3001\u67e5\u770b\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b<\/strong>\u662f\u6700\u5e38\u7528\u4e14\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u3002\u4f60\u53ea\u9700\u8981\u5728\u7ec8\u7aef\u8f93\u5165\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u5c31\u53ef\u4ee5\u7acb\u5373\u83b7\u5f97\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><p>\u5177\u4f53\u6765\u8bf4\uff0c\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4e4b\u4e00\uff1a<\/p>\n<\/p>\n<p><pre><code>python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code>python -V<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5c06\u663e\u793a\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u7684Python\u7248\u672c\u3002\u5982\u679c\u4f60\u5b89\u88c5\u4e86Python 3.x\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\uff1a<\/p>\n<\/p>\n<p><pre><code>python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code>python3 -V<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u63cf\u8ff0\u4e0a\u8ff0\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u5176\u4ed6\u65b9\u6cd5\u7684\u5177\u4f53\u64cd\u4f5c\u6b65\u9aa4\u53ca\u5176\u4f18\u52bf\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b<\/h3>\n<\/p>\n<p><h4>1\u3001\u67e5\u770bPython 2.x\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u5728Unix\u7cfb\u7edf\u4e0a\uff0cPython 2.x\u901a\u5e38\u88ab\u9ed8\u8ba4\u5b89\u88c5\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770bPython 2.x\u7684\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python -V<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5c06\u663e\u793a\u7c7b\u4f3c\u4e8e <code>Python 2.7.16<\/code> \u7684\u7248\u672c\u4fe1\u606f\u3002\u8bf7\u6ce8\u610f\uff0c\u67d0\u4e9b\u7cfb\u7edf\u4e0a\u53ef\u80fd\u4f1a\u6709\u4e0d\u540c\u7684\u8f93\u51fa\u683c\u5f0f\uff0c\u4f46\u5927\u4f53\u4e0a\u4fe1\u606f\u662f\u76f8\u540c\u7684\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u67e5\u770bPython 3.x\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u968f\u7740Python 3.x\u7684\u6d41\u884c\uff0c\u8bb8\u591a\u7cfb\u7edf\u4e5f\u9ed8\u8ba4\u5b89\u88c5\u4e86Python 3.x\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u5176\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python3 -V<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u663e\u793a\u7c7b\u4f3c\u4e8e <code>Python 3.8.5<\/code> \u7684\u7248\u672c\u4fe1\u606f\u3002\u5982\u679c\u4f60\u5b89\u88c5\u4e86\u591a\u4e2aPython 3.x\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u7279\u5b9a\u7248\u672c\u7684\u547d\u4ee4\u6765\u67e5\u770b\uff0c\u4f8b\u5982 <code>python3.6 --version<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u68c0\u67e5Python\u5b89\u88c5\u8def\u5f84<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u786e\u8ba4\u7279\u5b9aPython\u7248\u672c\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4ee5\u786e\u4fdd\u4f60\u4f7f\u7528\u7684\u662f\u6b63\u786e\u7684\u7248\u672c\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770bPython\u7684\u5b89\u88c5\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">which python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">which python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u663e\u793aPython\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u4f8b\u5982 <code>\/usr\/bin\/python<\/code> \u6216 <code>\/usr\/local\/bin\/python3<\/code>\u3002\u901a\u8fc7\u68c0\u67e5\u8fd9\u4e2a\u8def\u5f84\uff0c\u4f60\u53ef\u4ee5\u786e\u8ba4\u4f60\u6b63\u5728\u4f7f\u7528\u7684\u662f\u54ea\u4e2aPython\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u811a\u672c\u67e5\u770b<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u547d\u4ee4\u884c\uff0c\u4f60\u8fd8\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u6765\u67e5\u770b\u7248\u672c\u4fe1\u606f\u3002\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a <code>check_version.py<\/code> \u7684\u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\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>\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python check_version.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python3 check_version.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51fa\u5b8c\u6574\u7684Python\u7248\u672c\u4fe1\u606f\uff0c\u5305\u62ec\u7f16\u8bd1\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code>3.8.5 (default, Jul 20 2020, 15:42:30) <\/p>\n<p>[GCC 7.5.0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u67e5\u770b\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u5728Unix\u7cfb\u7edf\u4e2d\uff0c\u73af\u5883\u53d8\u91cf\u901a\u5e38\u7528\u4e8e\u7ba1\u7406\u7cfb\u7edf\u914d\u7f6e\u548c\u8def\u5f84\u4fe1\u606f\u3002\u4f60\u53ef\u4ee5\u68c0\u67e5 <code>PYTHONPATH<\/code> \u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4e86\u89e3Python\u7684\u5b89\u88c5\u8def\u5f84\u548c\u76f8\u5173\u4fe1\u606f\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">echo $PYTHONPATH<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u8bbe\u7f6e\u4e86 <code>PYTHONPATH<\/code>\uff0c\u5b83\u5c06\u663e\u793a\u5305\u542bPython\u5e93\u548c\u6a21\u5757\u8def\u5f84\u7684\u5217\u8868\u3002\u4f60\u4e5f\u53ef\u4ee5\u68c0\u67e5\u5176\u4ed6\u76f8\u5173\u7684\u73af\u5883\u53d8\u91cf\uff0c\u4f8b\u5982 <code>PATH<\/code>\uff0c\u4ee5\u786e\u4fdd\u6b63\u786e\u914d\u7f6e\u4e86Python\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5176\u4ed6\u5de5\u5177\u548c\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528\u5305\u7ba1\u7406\u5668<\/h4>\n<\/p>\n<p><p>\u8bb8\u591aUnix\u7cfb\u7edf\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5\u548c\u7ba1\u7406\u8f6f\u4ef6\u5305\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u67e5\u770b\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u3002\u4f8b\u5982\uff0c\u5728Ubuntu\u7cfb\u7edf\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>apt<\/code> \u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">apt list --installed | grep python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5217\u51fa\u6240\u6709\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u548c\u76f8\u5173\u8f6f\u4ef6\u5305\u3002\u7c7b\u4f3c\u7684\uff0c\u4f60\u53ef\u4ee5\u5728\u5176\u4ed6Unix\u7cfb\u7edf\u4e0a\u4f7f\u7528\u76f8\u5e94\u7684\u5305\u7ba1\u7406\u5668\u547d\u4ee4\uff0c\u5982 <code>yum<\/code> \u6216 <code>brew<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5b9e\u8df5\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\u5e76\u67e5\u770b\u5176\u4e2d\u7684Python\u7248\u672c\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python3 -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u67e5\u770b\u865a\u62df\u73af\u5883\u4e2d\u7684Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u5141\u8bb8\u4f60\u5728\u4e0d\u540c\u9879\u76ee\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684Python\u7248\u672c\u548c\u4f9d\u8d56\uff0c\u907f\u514d\u7248\u672c\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Unix\u7cfb\u7edf\u4e0a\u67e5\u770bPython\u7248\u672c\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5305\u62ec\u4f7f\u7528\u547d\u4ee4\u884c\u3001\u68c0\u67e5\u5b89\u88c5\u8def\u5f84\u3001\u7f16\u5199\u811a\u672c\u3001\u67e5\u770b\u73af\u5883\u53d8\u91cf\u7b49\u3002<strong>\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b<\/strong>\u662f\u6700\u7b80\u5355\u548c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5176\u4ed6\u65b9\u6cd5\u53ef\u80fd\u66f4\u52a0\u9002\u7528\u3002\u4e86\u89e3\u5e76\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5c06\u6709\u52a9\u4e8e\u4f60\u66f4\u597d\u5730\u7ba1\u7406\u548c\u4f7f\u7528Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u4f60\u662f\u5f00\u53d1\u4eba\u5458\u8fd8\u662f\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u4e86\u89e3\u5982\u4f55\u67e5\u770b\u548c\u7ba1\u7406Python\u7248\u672c\u90fd\u662f\u4e00\u9879\u57fa\u672c\u6280\u80fd\u3002\u5e0c\u671b\u672c\u6587\u63d0\u4f9b\u7684\u8be6\u7ec6\u6307\u5357\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u5b8c\u6210\u8fd9\u9879\u4efb\u52a1\u3002\u5982\u679c\u4f60\u5bf9\u67d0\u4e2a\u7279\u5b9a\u65b9\u6cd5\u6709\u7591\u95ee\u6216\u9700\u8981\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\uff0c\u8bf7\u968f\u65f6\u67e5\u9605\u76f8\u5173\u6587\u6863\u6216\u793e\u533a\u8d44\u6e90\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Unix\u7cfb\u7edf\u4e2d\u67e5\u770bPython\u7684\u5177\u4f53\u7248\u672c\u53f7\uff1f<\/strong><br \/>\u5728Unix\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u67e5\u770b\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\u3002\u8fd9\u4e24\u6761\u547d\u4ee4\u5206\u522b\u5bf9\u5e94Python 2.x\u548cPython 3.x\u7684\u7248\u672c\u4fe1\u606f\u3002\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\u54ea\u4e00\u4e2a\u7248\u672c\u662f\u9ed8\u8ba4\u7684\uff0c\u5efa\u8bae\u540c\u65f6\u8fd0\u884c\u8fd9\u4e24\u6761\u547d\u4ee4\u4ee5\u786e\u8ba4\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u7684Unix\u7cfb\u7edf\u4e2d\u540c\u65f6\u5b89\u88c5\u4e86\u591a\u4e2aPython\u7248\u672c\uff0c\u5982\u4f55\u77e5\u9053\u5b83\u4eec\u7684\u7248\u672c\u53f7\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u4e2d\u6709\u591a\u4e2aPython\u7248\u672c\uff0c\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u5b8c\u6574\u7684\u547d\u4ee4\u6765\u67e5\u770b\uff0c\u4f8b\u5982<code>python2 --version<\/code>\u548c<code>python3 --version<\/code>\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>ls \/usr\/bin\/python*<\/code>\u547d\u4ee4\u53ef\u4ee5\u5217\u51fa\u6240\u6709\u5b89\u88c5\u7684Python\u7248\u672c\u3002\u8fd9\u6837\uff0c\u4f60\u53ef\u4ee5\u5feb\u901f\u627e\u5230\u7cfb\u7edf\u4e2d\u6240\u6709\u53ef\u7528\u7684Python\u7248\u672c\u4ee5\u53ca\u5b83\u4eec\u7684\u5bf9\u5e94\u8def\u5f84\u3002<\/p>\n<p><strong>\u5728Unix\u4e2d\uff0c\u5982\u4f55\u901a\u8fc7Python\u811a\u672c\u67e5\u770b\u5f53\u524d\u7684Python\u7248\u672c\uff1f<\/strong><br \/>\u4f60\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u6765\u83b7\u53d6\u5f53\u524d\u7684Python\u7248\u672c\u3002\u5728\u811a\u672c\u4e2d\uff0c\u4f7f\u7528<code>import sys<\/code>\u548c<code>print(sys.version)<\/code>\u53ef\u4ee5\u8f93\u51fa\u8be6\u7ec6\u7684Python\u7248\u672c\u4fe1\u606f\u3002\u5c06\u8fd9\u6bb5\u4ee3\u7801\u4fdd\u5b58\u4e3a\u4e00\u4e2a<code>.py<\/code>\u6587\u4ef6\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u8be5\u811a\u672c\uff0c\u5373\u53ef\u770b\u5230\u5f53\u524dPython\u7248\u672c\u53ca\u5176\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Unix\u7cfb\u7edf\u4e0a\u67e5\u770bPython\u7248\u672c\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528\u547d\u4ee4\u884c\u67e5\u770b\u3001\u68c0\u67e5Python\u5b89\u88c5\u8def\u5f84\u3001\u4f7f\u7528\u811a\u672c\u67e5\u770b\u3001\u67e5 [&hellip;]","protected":false},"author":3,"featured_media":1155660,"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\/1155649"}],"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=1155649"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1155649\/revisions"}],"predecessor-version":[{"id":1155662,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1155649\/revisions\/1155662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1155660"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1155649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1155649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1155649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}