{"id":1069473,"date":"2025-01-08T10:49:12","date_gmt":"2025-01-08T02:49:12","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1069473.html"},"modified":"2025-01-08T10:49:14","modified_gmt":"2025-01-08T02:49:14","slug":"%e5%a6%82%e4%bd%95%e5%90%8c%e6%97%b6%e5%ae%89%e8%a3%85python2%e5%92%8c3-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1069473.html","title":{"rendered":"\u5982\u4f55\u540c\u65f6\u5b89\u88c5python2\u548c3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100507\/de58d676-7b9e-40a0-a366-877eb93b8b04.webp\" alt=\"\u5982\u4f55\u540c\u65f6\u5b89\u88c5python2\u548c3\" \/><\/p>\n<p><p> <strong>\u5728\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u540c\u65f6\u5b89\u88c5Python 2\u548cPython 3\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u7ba1\u7406\u5305\u7ba1\u7406\u5668\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u8def\u5f84<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u4e00\u4e2a\u9ad8\u6548\u4e14\u7075\u6d3b\u7684\u89e3\u51b3\u65b9\u6848\u3002\u901a\u8fc7\u865a\u62df\u73af\u5883\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u521b\u5efa\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u6bcf\u4e2a\u73af\u5883\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684Python\u7248\u672c\u548c\u5305\u4f9d\u8d56\uff0c\u8fd9\u6837\u5c31\u907f\u514d\u4e86\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\uff08Virtual Environment\uff09\u662f\u4e00\u4e2a\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u540c\u65f6\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u548c\u9879\u76ee\u4f9d\u8d56\u3002\u865a\u62df\u73af\u5883\u8ba9\u6bcf\u4e2a\u9879\u76ee\u6709\u81ea\u5df1\u72ec\u7acb\u7684\u4f9d\u8d56\u5305\uff0c\u4e0d\u4f1a\u76f8\u4e92\u5e72\u6270\u3002\u4e0b\u9762\u662f\u4f7f\u7528\u865a\u62df\u73af\u5883\u6765\u7ba1\u7406Python\u7248\u672c\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5 <code>virtualenv<\/code><\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5 <code>virtualenv<\/code> \u5305\uff0c\u5b83\u662f\u521b\u5efa\u865a\u62df\u73af\u5883\u7684\u57fa\u7840\u5de5\u5177\u3002\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5 <code>virtualenv<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install virtualenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u521b\u5efa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u865a\u62df\u73af\u5883\u65f6\uff0c\u53ef\u4ee5\u6307\u5b9aPython\u7248\u672c\u3002\u5047\u8bbe\u6211\u4eec\u60f3\u4e3aPython 2\u548cPython 3\u5206\u522b\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u521b\u5efaPython 2\u865a\u62df\u73af\u5883<\/p>\n<p>virtualenv -p \/usr\/bin\/python2.7 py2env<\/p>\n<h2><strong>\u521b\u5efaPython 3\u865a\u62df\u73af\u5883<\/strong><\/h2>\n<p>virtualenv -p \/usr\/bin\/python3 py3env<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u4f60\u53ef\u4ee5\u5b89\u88c5\u7279\u5b9a\u4e8e\u8be5\u73af\u5883\u7684\u5305\uff0c\u800c\u4e0d\u5f71\u54cd\u5168\u5c40Python\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u6fc0\u6d3bPython 2\u865a\u62df\u73af\u5883<\/p>\n<p>source py2env\/bin\/activate<\/p>\n<h2><strong>\u6fc0\u6d3bPython 3\u865a\u62df\u73af\u5883<\/strong><\/h2>\n<p>source py3env\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u5b89\u88c5\u548c\u7ba1\u7406\u5305<\/h4>\n<\/p>\n<p><p>\u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>pip<\/code> \u6765\u5b89\u88c5\u548c\u7ba1\u7406\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u5728Python 2\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u5305<\/p>\n<p>pip install somepackage<\/p>\n<h2><strong>\u5728Python 3\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u5305<\/strong><\/h2>\n<p>pip install anotherpackage<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u9000\u51fa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5f53\u4f60\u5b8c\u6210\u5de5\u4f5c\u540e\uff0c\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\u7528\u5305\u7ba1\u7406\u5668<\/h3>\n<\/p>\n<p><p>\u5305\u7ba1\u7406\u5668\uff08\u5982 <code>pyenv<\/code> \u548c <code>conda<\/code>\uff09\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b89\u88c5\u548c\u5207\u6362\u4e0d\u540c\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5 <code>pyenv<\/code><\/h4>\n<\/p>\n<p><p><code>pyenv<\/code> \u662f\u4e00\u4e2a\u7b80\u5355\u7684Python\u7248\u672c\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b89\u88c5\u548c\u5207\u6362\u591a\u4e2aPython\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u5b89\u88c5pyenv<\/p>\n<p>curl https:\/\/pyenv.run | bash<\/p>\n<h2><strong>\u6dfb\u52a0pyenv\u5230shell<\/strong><\/h2>\n<p>export PATH=&quot;$HOME\/.pyenv\/bin:$PATH&quot;<\/p>\n<p>eval &quot;$(pyenv init --path)&quot;<\/p>\n<p>eval &quot;$(pyenv init -)&quot;<\/p>\n<p>eval &quot;$(pyenv virtualenv-init -)&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b89\u88c5\u548c\u5207\u6362Python\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528 <code>pyenv<\/code> \u5b89\u88c5\u4e0d\u540c\u7684Python\u7248\u672c\uff0c\u5e76\u5728\u9879\u76ee\u4e4b\u95f4\u5207\u6362\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u5b89\u88c5Python 2.7\u548c3.8<\/p>\n<p>pyenv install 2.7.18<\/p>\n<p>pyenv install 3.8.6<\/p>\n<h2><strong>\u5207\u6362\u5230Python 2.7<\/strong><\/h2>\n<p>pyenv global 2.7.18<\/p>\n<h2><strong>\u5207\u6362\u5230Python 3.8<\/strong><\/h2>\n<p>pyenv global 3.8.6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u4f7f\u7528 <code>conda<\/code><\/h4>\n<\/p>\n<p><p><code>conda<\/code> \u662f\u4e00\u4e2a\u5f00\u6e90\u5305\u7ba1\u7406\u7cfb\u7edf\u548c\u73af\u5883\u7ba1\u7406\u7cfb\u7edf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u5b89\u88c5conda<\/p>\n<p>wget https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Linux-x86_64.sh<\/p>\n<p>bash Miniconda3-latest-Linux-x86_64.sh<\/p>\n<h2><strong>\u521b\u5efaPython\u73af\u5883<\/strong><\/h2>\n<p>conda create --name py2env python=2.7<\/p>\n<p>conda create --name py3env python=3.8<\/p>\n<h2><strong>\u6fc0\u6d3b\u73af\u5883<\/strong><\/h2>\n<p>conda activate py2env<\/p>\n<p>conda activate py3env<\/p>\n<h2><strong>\u5b89\u88c5\u5305<\/strong><\/h2>\n<p>conda install somepackage<\/p>\n<h2><strong>\u9000\u51fa\u73af\u5883<\/strong><\/h2>\n<p>conda deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u65b9\u4fbf\u5730\u5207\u6362Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5Python 2\u548c3<\/h4>\n<\/p>\n<p><p>\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86Python 2\u548cPython 3\uff0c\u5e76\u8bb0\u5f55\u5b83\u4eec\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h4>2. \u8bbe\u7f6e\u522b\u540d<\/h4>\n<\/p>\n<p><p>\u5728shell\u914d\u7f6e\u6587\u4ef6\uff08\u5982 <code>.bashrc<\/code> \u6216 <code>.zshrc<\/code>\uff09\u4e2d\u6dfb\u52a0\u522b\u540d\uff0c\u4ee5\u4fbf\u5feb\u901f\u5207\u6362Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u4e3aPython 2\u8bbe\u7f6e\u522b\u540d<\/p>\n<p>alias python2=&#39;\/usr\/bin\/python2.7&#39;<\/p>\n<h2><strong>\u4e3aPython 3\u8bbe\u7f6e\u522b\u540d<\/strong><\/h2>\n<p>alias python3=&#39;\/usr\/bin\/python3.8&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5e94\u7528\u66f4\u6539<\/h4>\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 ~\/.bashrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>python2<\/code> \u548c <code>python3<\/code> \u547d\u4ee4\u6765\u5207\u6362\u4e0d\u540c\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u8def\u5f84<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4ee5\u907f\u514d\u7248\u672c\u51b2\u7a81\uff1a<\/p>\n<\/p>\n<p><h4>1. \u4e0b\u8f7d\u548c\u5b89\u88c5Python<\/h4>\n<\/p>\n<p><p>\u4ecePython\u5b98\u7f51\uff08<a href=\"https:\/\/www.python.org\/downloads\/%EF%BC%89%E4%B8%8B%E8%BD%BDPython\">https:\/\/www.python.org\/downloads\/\uff09\u4e0b\u8f7dPython<\/a> 2\u548cPython 3\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5e76\u9009\u62e9\u4e0d\u540c\u7684\u5b89\u88c5\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u5b89\u88c5Python 2\u5230\u6307\u5b9a\u8def\u5f84<\/p>\n<p>.\/configure --prefix=\/opt\/python2<\/p>\n<p>make<\/p>\n<p>make install<\/p>\n<h2><strong>\u5b89\u88c5Python 3\u5230\u6307\u5b9a\u8def\u5f84<\/strong><\/h2>\n<p>.\/configure --prefix=\/opt\/python3<\/p>\n<p>make<\/p>\n<p>make install<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<\/p>\n<p><p>\u5728shell\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u7684Python\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u8bbe\u7f6ePython 2\u8def\u5f84<\/p>\n<p>export PATH=&quot;\/opt\/python2\/bin:$PATH&quot;<\/p>\n<h2><strong>\u8bbe\u7f6ePython 3\u8def\u5f84<\/strong><\/h2>\n<p>export PATH=&quot;\/opt\/python3\/bin:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5e94\u7528\u66f4\u6539<\/h4>\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 ~\/.bashrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u540c\u65f6\u5b89\u88c5Python 2\u548cPython 3\u662f\u4e00\u4e2a\u5e38\u89c1\u9700\u6c42\uff0c\u7279\u522b\u662f\u5728\u8fc1\u79fb\u65e7\u9879\u76ee\u6216\u5f00\u53d1\u65b0\u9879\u76ee\u65f6\u3002\u901a\u8fc7\u865a\u62df\u73af\u5883\u3001\u5305\u7ba1\u7406\u5668\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u548c\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u5207\u6362\u4e0d\u540c\u7248\u672c\u7684Python\u3002<strong>\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u6700\u63a8\u8350\u7684\u89e3\u51b3\u65b9\u6848<\/strong>\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u6700\u5927\u7684\u7075\u6d3b\u6027\u548c\u9694\u79bb\u6027\uff0c\u6709\u52a9\u4e8e\u907f\u514d\u4f9d\u8d56\u51b2\u7a81\u5e76\u7b80\u5316<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/23316.html\" target=\"_blank\">\u9879\u76ee\u7ba1\u7406<\/a>\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u540c\u65f6\u4f7f\u7528Python 2\u548cPython 3\uff1f<\/strong><br \/>\u5728\u4e00\u53f0\u673a\u5668\u4e0a\u540c\u65f6\u5b89\u88c5Python 2\u548cPython 3\u662f\u5b8c\u5168\u53ef\u884c\u7684\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u4e0d\u540c\u7684\u5b89\u88c5\u8def\u5f84\u6765\u5b9e\u73b0\uff0c\u6216\u8005\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\u5982Anaconda\u6216pyenv\u6765\u7ba1\u7406\u591a\u4e2a\u7248\u672c\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u786e\u4fdd\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528<code>python2<\/code>\u548c<code>python3<\/code>\u6765\u8c03\u7528\u4e0d\u540c\u7684\u7248\u672c\u3002<\/p>\n<p><strong>\u5728Windows\u548cmacOS\u4e0a\u5b89\u88c5Python 2\u548c3\u6709\u4f55\u4e0d\u540c\uff1f<\/strong><br \/>\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u4ecePython\u5b98\u7f51\u5206\u522b\u4e0b\u8f7dPython 2\u548cPython 3\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5b89\u88c5\u65f6\u6ce8\u610f\u9009\u62e9\u4e0d\u540c\u7684\u5b89\u88c5\u76ee\u5f55\u3002\u5728macOS\u4e0a\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7Homebrew\u6765\u5b89\u88c5\u4e0d\u540c\u7248\u672c\u7684Python\uff0c\u547d\u4ee4\u4e3a<code>brew install python@2<\/code>\u548c<code>brew install python<\/code>\u3002\u786e\u4fdd\u5728\u5b89\u88c5\u65f6\u6b63\u786e\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u80fd\u591f\u5728\u7ec8\u7aef\u4e2d\u76f4\u63a5\u4f7f\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u7ba1\u7406Python 2\u548cPython 3\u7684\u5305\u4f9d\u8d56\uff1f<\/strong><br \/>\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u7ba1\u7406Python 2\u548cPython 3\u5305\u4f9d\u8d56\u7684\u6709\u6548\u65b9\u6cd5\u3002\u53ef\u4ee5\u4f7f\u7528<code>virtualenv<\/code>\u4e3aPython 2\u521b\u5efa\u72ec\u7acb\u7684\u73af\u5883\uff0c\u4f7f\u7528<code>venv<\/code>\u6216<code>conda<\/code>\u4e3aPython 3\u521b\u5efa\u72ec\u7acb\u7684\u73af\u5883\u3002\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u4e0d\u540c\u7248\u672c\u4e4b\u95f4\u7684\u5305\u51b2\u7a81\uff0c\u5e76\u4fdd\u6301\u9879\u76ee\u7684\u6574\u6d01\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u540c\u65f6\u5b89\u88c5Python 2\u548cPython 3\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u7ba1\u7406\u5305\u7ba1\u7406\u5668\u3001\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1069476,"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\/1069473"}],"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=1069473"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1069473\/revisions"}],"predecessor-version":[{"id":1069479,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1069473\/revisions\/1069479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1069476"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1069473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1069473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1069473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}