{"id":1048507,"date":"2024-12-31T13:51:46","date_gmt":"2024-12-31T05:51:46","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1048507.html"},"modified":"2024-12-31T13:51:48","modified_gmt":"2024-12-31T05:51:48","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e5%a4%9a%e4%b8%aapython%e4%b8%ad%e5%88%87%e6%8d%a2%e7%89%88%e6%9c%ac%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1048507.html","title":{"rendered":"\u5982\u4f55\u5728\u591a\u4e2apython\u4e2d\u5207\u6362\u7248\u672c\u8fd0\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/e48d07a4-cfef-40b1-ab24-fabfc3b4b2fe.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u5728\u591a\u4e2apython\u4e2d\u5207\u6362\u7248\u672c\u8fd0\u884c\" \/><\/p>\n<p><p> \u5728\u591a\u4e2aPython\u7248\u672c\u4e2d\u5207\u6362\u5e76\u8fd0\u884c\uff0c\u53ef\u4ee5\u901a\u8fc7<strong>\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001pyenv\u7ba1\u7406\u3001conda\u73af\u5883<\/strong>\u7b49\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u865a\u62df\u73af\u5883\u548cpyenv\u6765\u7ba1\u7406\u548c\u5207\u6362Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u5141\u8bb8\u60a8\u5728\u9694\u79bb\u7684\u73af\u5883\u4e2d\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305\uff0c\u4ece\u800c\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\u3002Python\u5185\u7f6e\u7684<code>venv<\/code>\u6a21\u5757\u548c\u7b2c\u4e09\u65b9\u5e93<code>virtualenv<\/code>\u90fd\u53ef\u4ee5\u521b\u5efa\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>1.1 \u4f7f\u7528 <code>venv<\/code> \u6a21\u5757<\/h3>\n<\/p>\n<p><p>Python 3.3+ \u63d0\u4f9b\u4e86\u5185\u7f6e\u7684 <code>venv<\/code> \u6a21\u5757\u6765\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><h4>\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a <code>myenv<\/code> \u7684\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542bPython\u89e3\u91ca\u5668\u548c\u6807\u51c6\u5e93\u3002<\/p>\n<\/p>\n<p><h4>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><p>\u5728Unix\u6216MacOS\u4e0a\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>\u5728Windows\u4e0a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">myenv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\uff0c\u5e76\u4e14\u6240\u6709Python\u547d\u4ee4\u90fd\u4f1a\u4f7f\u7528\u865a\u62df\u73af\u5883\u4e2d\u7684\u89e3\u91ca\u5668\u548c\u5305\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5\u5305\uff1a<\/h4>\n<\/p>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u60a8\u53ef\u4ee5\u50cf\u5f80\u5e38\u4e00\u6837\u4f7f\u7528 <code>pip<\/code> \u5b89\u88c5\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><h4>\u9000\u51fa\u865a\u62df\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><p>\u8981\u9000\u51fa\u865a\u62df\u73af\u5883\u5e76\u8fd4\u56de\u5230\u5168\u5c40Python\u73af\u5883\uff0c\u53ea\u9700\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>1.2 \u4f7f\u7528 <code>virtualenv<\/code> \u5e93<\/h3>\n<\/p>\n<p><p><code>virtualenv<\/code> \u662f\u4e00\u4e2a\u6d41\u884c\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u652f\u6301\u66f4\u591a\u529f\u80fd\u548c\u65e7\u7248Python\uff1a<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5 <code>virtualenv<\/code>\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install virtualenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">virtualenv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6fc0\u6d3b\u3001\u5b89\u88c5\u5305\u548c\u9000\u51fa\u865a\u62df\u73af\u5883\u7684\u6b65\u9aa4\u4e0e <code>venv<\/code> \u76f8\u540c\u3002<\/h4>\n<\/p>\n<p><p>\u4e8c\u3001pyenv \u7ba1\u7406\u5668<\/p>\n<\/p>\n<p><p><code>pyenv<\/code> \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u548c\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\uff0c\u5e76\u5141\u8bb8\u5728\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u5207\u6362\u3002<\/p>\n<\/p>\n<p><h3>2.1 \u5b89\u88c5 pyenv<\/h3>\n<\/p>\n<p><p>\u5728Unix\u6216MacOS\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 <code>pyenv<\/code>\uff1a<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5\u4f9d\u8d56\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\"># Ubuntu\/Debian<\/p>\n<p>sudo apt-get update<\/p>\n<p>sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git<\/p>\n<h2><strong>MacOS<\/strong><\/h2>\n<p>brew install openssl readline sqlite3 xz zlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5b89\u88c5 pyenv\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">curl https:\/\/pyenv.run | bash<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6dfb\u52a0 pyenv \u5230 shell\uff1a<\/h4>\n<\/p>\n<p><p>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6dfb\u52a0\u5230 <code>~\/.bashrc<\/code> \u6216 <code>~\/.zshrc<\/code> \u6587\u4ef6\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">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><p>\u7136\u540e\uff0c\u91cd\u65b0\u542f\u52a8\u7ec8\u7aef\u6216\u8fd0\u884c <code>source ~\/.bashrc<\/code>\uff08\u6216 <code>source ~\/.zshrc<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><h3>2.2 \u5b89\u88c5\u548c\u4f7f\u7528\u591a\u4e2aPython\u7248\u672c<\/h3>\n<\/p>\n<p><h4>\u5217\u51fa\u53ef\u7528\u7684Python\u7248\u672c\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv install --list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5b89\u88c5Python\u7248\u672c\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv install 3.9.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u8bbe\u7f6e\u5168\u5c40Python\u7248\u672c\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv global 3.9.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u8bbe\u7f6e\u672c\u5730Python\u7248\u672c\uff08\u4ec5\u9002\u7528\u4e8e\u5f53\u524d\u76ee\u5f55\uff09\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv local 3.9.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5207\u6362Python\u7248\u672c\uff1a<\/h4>\n<\/p>\n<p><p>\u53ea\u9700\u8fd0\u884c\u76f8\u5e94\u7684 <code>pyenv global<\/code> \u6216 <code>pyenv local<\/code> \u547d\u4ee4\u5373\u53ef\u5207\u6362Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>2.3 \u4f7f\u7528 pyenv-virtualenv<\/h3>\n<\/p>\n<p><p><code>pyenv-virtualenv<\/code> \u7ed3\u5408\u4e86 <code>pyenv<\/code> \u548c <code>virtualenv<\/code> \u7684\u4f18\u70b9\uff0c\u5141\u8bb8\u60a8\u521b\u5efa\u548c\u7ba1\u7406\u57fa\u4e8e\u7279\u5b9aPython\u7248\u672c\u7684\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5 pyenv-virtualenv\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">git clone https:\/\/github.com\/pyenv\/pyenv-virtualenv.git $(pyenv root)\/plugins\/pyenv-virtualenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv virtualenv 3.9.1 myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv activate myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u9000\u51fa\u865a\u62df\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001conda \u73af\u5883<\/p>\n<\/p>\n<p><p><code>conda<\/code> \u662f\u4e00\u4e2a\u5f00\u6e90\u5305\u7ba1\u7406\u548c\u73af\u5883\u7ba1\u7406\u7cfb\u7edf\uff0c\u5b83\u4e0d\u4ec5\u652f\u6301Python\uff0c\u8fd8\u652f\u6301\u5176\u4ed6\u8bed\u8a00\u3002<code>conda<\/code> \u901a\u5e38\u4e0e <code>Anaconda<\/code> \u6216 <code>Miniconda<\/code> \u4e00\u8d77\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>3.1 \u5b89\u88c5 Anaconda \u6216 Miniconda<\/h3>\n<\/p>\n<p><p>\u60a8\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u94fe\u63a5\u4e0b\u8f7d\u5e76\u5b89\u88c5 <code>Anaconda<\/code> \u6216 <code>Miniconda<\/code>\uff1a<\/p>\n<\/p>\n<ul>\n<li>Anaconda: <a href=\"https:\/\/www.anaconda.com\/products\/distribution\">https:\/\/www.anaconda.com\/products\/distribution<\/a><\/li>\n<li>Miniconda: <a href=\"https:\/\/docs.conda.io\/en\/latest\/miniconda.html\">https:\/\/docs.conda.io\/en\/latest\/miniconda.html<\/a><\/li>\n<\/ul>\n<p><h3>3.2 \u521b\u5efa\u548c\u7ba1\u7406\u73af\u5883<\/h3>\n<\/p>\n<p><h4>\u521b\u5efa\u65b0\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda create --name myenv python=3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6fc0\u6d3b\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda activate myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5b89\u88c5\u5305\uff1a<\/h4>\n<\/p>\n<p><p>\u5728\u73af\u5883\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 <code>conda install<\/code> \u5b89\u88c5\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda install package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u9000\u51fa\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5217\u51fa\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda env list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5220\u9664\u73af\u5883\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">conda env remove --name myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0c<strong>\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001pyenv\u7ba1\u7406\u3001conda\u73af\u5883<\/strong>\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5728\u591a\u4e2aPython\u7248\u672c\u4e4b\u95f4\u5207\u6362\u5e76\u8fd0\u884c\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u7ba1\u7406\u548c\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u786e\u4fdd\u5f00\u53d1\u8fc7\u7a0b\u66f4\u52a0\u9ad8\u6548\u548c\u7a33\u5b9a\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u60a8\u7684\u9700\u6c42\u548c\u504f\u597d\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff0c\u5e76\u6839\u636e\u4e0a\u8ff0\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u60a8\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\u540c\u4e00\u53f0\u7535\u8111\u4e0a\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u7684Python\uff1f<\/strong><br \/>\u5728\u4e00\u53f0\u7535\u8111\u4e0a\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u7684Python\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5b98\u65b9Python\u5b89\u88c5\u7a0b\u5e8f\uff0c\u9009\u62e9\u4e0d\u540c\u7684\u5b89\u88c5\u8def\u5f84\u6765\u5b9e\u73b0\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\u5982Anaconda\u6216pyenv\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7ba1\u7406\u4e0d\u540c\u7248\u672c\u7684Python\uff0c\u5e76\u4e14\u63d0\u4f9b\u4fbf\u6377\u7684\u73af\u5883\u5207\u6362\u529f\u80fd\u3002<\/p>\n<p><strong>\u5207\u6362Python\u7248\u672c\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u9879\u76ee\u4f9d\u8d56\u4e0d\u53d7\u5f71\u54cd\uff1f<\/strong><br \/>\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u786e\u4fdd\u9879\u76ee\u4f9d\u8d56\u4e0d\u53d7\u5f71\u54cd\u7684\u6700\u4f73\u65b9\u6cd5\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>venv<\/code>\u6216<code>virtualenv<\/code>\u6765\u521b\u5efa\u72ec\u7acb\u7684\u73af\u5883\uff0c\u4ece\u800c\u5728\u4e0d\u540c\u7248\u672c\u7684Python\u4e2d\u7ba1\u7406\u5404\u81ea\u7684\u4f9d\u8d56\u5305\u3002\u6bcf\u4e2a\u865a\u62df\u73af\u5883\u90fd\u6709\u81ea\u5df1\u7684Python\u89e3\u91ca\u5668\u548c\u5305\u5e93\uff0c\u907f\u514d\u4e86\u7248\u672c\u51b2\u7a81\u7684\u95ee\u9898\u3002<\/p>\n<p><strong>\u5728\u547d\u4ee4\u884c\u4e2d\u5207\u6362Python\u7248\u672c\u7684\u5177\u4f53\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728\u547d\u4ee4\u884c\u4e2d\u5207\u6362Python\u7248\u672c\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u8c03\u7528\u7279\u5b9a\u7248\u672c\u7684Python\u53ef\u6267\u884c\u6587\u4ef6\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>python3.7<\/code>\u6216<code>python3.8<\/code>\u6765\u8c03\u7528\u7279\u5b9a\u7248\u672c\u7684Python\u3002\u5982\u679c\u4f60\u4f7f\u7528\u4e86pyenv\uff0c\u5207\u6362\u7248\u672c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pyenv global 3.7.9<\/code>\u6765\u5b9e\u73b0\uff0c\u8fd9\u6837\u540e\u7eed\u7684Python\u547d\u4ee4\u90fd\u4f1a\u4f7f\u7528\u6307\u5b9a\u7248\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u591a\u4e2aPython\u7248\u672c\u4e2d\u5207\u6362\u5e76\u8fd0\u884c\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001pyenv\u7ba1\u7406\u3001conda\u73af\u5883\u7b49\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u4e0b\u9762\u5c06\u8be6 [&hellip;]","protected":false},"author":3,"featured_media":1048514,"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\/1048507"}],"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=1048507"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1048507\/revisions"}],"predecessor-version":[{"id":1048515,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1048507\/revisions\/1048515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1048514"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1048507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1048507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1048507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}