{"id":962327,"date":"2024-12-27T04:07:17","date_gmt":"2024-12-26T20:07:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/962327.html"},"modified":"2024-12-27T04:07:19","modified_gmt":"2024-12-26T20:07:19","slug":"%e6%b7%b1%e5%ba%a6os%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/962327.html","title":{"rendered":"\u6df1\u5ea6os\u5982\u4f55\u5b89\u88c5python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104325\/03668596-ee2c-4aac-8b09-5a9efc59921c.webp\" alt=\"\u6df1\u5ea6os\u5982\u4f55\u5b89\u88c5python\" \/><\/p>\n<p><p> <strong>\u6df1\u5ea6OS\u5b89\u88c5Python\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u5546\u5e97\u3001\u7ec8\u7aef\u547d\u4ee4\u3001\u6e90\u7801\u7f16\u8bd1\u7b49\u591a\u79cd\u65b9\u5f0f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u786e\u4fddPython\u7684\u6b63\u5e38\u8fd0\u884c<\/strong>\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\uff0c\u4f7f\u7528\u6df1\u5ea6\u5546\u5e97\u53ef\u80fd\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u800c\u5bf9\u4e8e\u9700\u8981\u7279\u5b9a\u7248\u672c\u7684\u7528\u6237\uff0c\u6e90\u7801\u7f16\u8bd1\u53ef\u80fd\u662f\u6700\u4f73\u9009\u62e9\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u901a\u8fc7\u7ec8\u7aef\u547d\u4ee4\u7684\u65b9\u5f0f\u5b89\u88c5Python\u3002<\/p>\n<\/p>\n<p><p>\u5728\u6df1\u5ea6OS\u4e2d\uff0c\u5b89\u88c5Python\u7684\u4e00\u4e2a\u5e38\u89c1\u65b9\u6cd5\u662f\u901a\u8fc7\u7ec8\u7aef\u4f7f\u7528APT\u5305\u7ba1\u7406\u5668\u3002APT\uff08Advanced Package Tool\uff09\u662fDebian\u53ca\u5176\u884d\u751f\u53d1\u884c\u7248\u4e2d\u7528\u4e8e\u5b89\u88c5\u548c\u7ba1\u7406\u8f6f\u4ef6\u5305\u7684\u5de5\u5177\u3002\u5229\u7528APT\u5b89\u88c5Python\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><p>\u4e00\u3001APT\u5305\u7ba1\u7406\u5668\u5b89\u88c5<\/p>\n<\/p>\n<p><p>APT\u5305\u7ba1\u7406\u5668\u662f\u6df1\u5ea6OS\u4e2d\u9ed8\u8ba4\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5229\u7528\u5b83\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b89\u88c5Python\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868<\/strong><br \/>\u5728\u5b89\u88c5Python\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u8f6f\u4ef6\u5305\u5217\u8868\u662f\u6700\u65b0\u7684\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u66f4\u65b0\u672c\u5730\u8f6f\u4ef6\u5305\u5217\u8868\uff0c\u786e\u4fdd\u5b89\u88c5\u7684\u662f\u6700\u65b0\u7684\u8f6f\u4ef6\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5Python<\/strong><br \/>\u66f4\u65b0\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Python 3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt install python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5b89\u88c5Python 3\u7684\u5f53\u524d\u7a33\u5b9a\u7248\u672c\u3002\u5982\u679c\u9700\u8981\u5b89\u88c5Python 2\uff08\u5c3d\u7ba1\u4e0d\u63a8\u8350\uff0c\u56e0\u4e3a\u5b98\u65b9\u5df2\u7ecf\u505c\u6b62\u652f\u6301\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9a8c\u8bc1Python\u662f\u5426\u6b63\u786e\u5b89\u88c5\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u663e\u793a\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\uff0c\u786e\u8ba4\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5229\u7528\u6df1\u5ea6\u5546\u5e97\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e0d\u719f\u6089\u547d\u4ee4\u884c\u64cd\u4f5c\u7684\u7528\u6237\uff0c\u6df1\u5ea6\u5546\u5e97\u63d0\u4f9b\u4e86\u4e00\u4e2a\u56fe\u5f62\u5316\u754c\u9762\u6765\u5b89\u88c5Python\u3002\u4ee5\u4e0b\u662f\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u6df1\u5ea6\u5546\u5e97<\/strong><br \/>\u901a\u8fc7\u5e94\u7528\u83dc\u5355\u6216\u8005\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u6253\u5f00\u6df1\u5ea6\u5546\u5e97\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u641c\u7d22Python<\/strong><br \/>\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cPython\u201d\uff0c\u7136\u540e\u6309\u56de\u8f66\u952e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5e76\u5b89\u88c5Python<\/strong><br \/>\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u627e\u5230Python\u5e94\u7528\u7a0b\u5e8f\uff0c\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u6309\u94ae\u3002\u6df1\u5ea6\u5546\u5e97\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5Python\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><br \/>\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u7279\u5b9aPython\u7248\u672c\u7684\u7528\u6237\uff0c\u6e90\u7801\u7f16\u8bd1\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u4ee5\u4e0b\u662f\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u7f16\u8bd1\u6240\u9700\u5de5\u5177<\/strong><br \/>\u6e90\u7801\u7f16\u8bd1\u9700\u8981\u4e00\u4e9b\u5f00\u53d1\u5de5\u5177\uff0c\u9996\u5148\u5b89\u88c5\u5b83\u4eec\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt install build-essential<\/p>\n<p>sudo apt install 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<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0b\u8f7dPython\u6e90\u7801<\/strong><br \/>\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u4e0b\u8f7d\u6240\u9700\u7248\u672c\u7684\u6e90\u7801\u5305\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>wget<\/code>\u547d\u4ee4\u76f4\u63a5\u4e0b\u8f7d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">wget https:\/\/www.python.org\/ftp\/python\/3.x.x\/Python-3.x.x.tgz<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c06\u201c3.x.x\u201d\u66ff\u6362\u4e3a\u9700\u8981\u7684\u7248\u672c\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u89e3\u538b\u6e90\u7801\u5305<\/strong><br \/>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u89e3\u538b\u6e90\u7801\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">tar -xvf Python-3.x.x.tgz<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u8bd1\u5e76\u5b89\u88c5Python<\/strong><br \/>\u8fdb\u5165\u89e3\u538b\u540e\u7684\u76ee\u5f55\uff0c\u914d\u7f6e\u7f16\u8bd1\u73af\u5883\u5e76\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cd Python-3.x.x<\/p>\n<p>.\/configure --enable-optimizations<\/p>\n<p>make<\/p>\n<p>sudo make altinstall<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6ce8\u610f\u4f7f\u7528<code>altinstall<\/code>\u800c\u4e0d\u662f<code>install<\/code>\uff0c\u4ee5\u907f\u514d\u8986\u76d6\u7cfb\u7edf\u9ed8\u8ba4\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><br \/>\u9a8c\u8bc1\u65b0\u5b89\u88c5\u7684Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3.x --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684\u201c3.x\u201d\u5e94\u66ff\u6362\u4e3a\u5b89\u88c5\u7684\u7248\u672c\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u865a\u62df\u73af\u5883\u7684\u8bbe\u7f6e<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u4f7f\u7528\u54ea\u79cd\u65b9\u6cd5\u5b89\u88c5Python\uff0c\u5efa\u8bae\u4e3a\u9879\u76ee\u521b\u5efa\u865a\u62df\u73af\u5883\uff0c\u4ee5\u4fbf\u9694\u79bb\u4f9d\u8d56\u5173\u7cfb\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5<code>venv<\/code>\u6a21\u5757<\/strong><br \/>Python 3\u81ea\u5e26<code>venv<\/code>\u6a21\u5757\u7528\u4e8e\u521b\u5efa\u865a\u62df\u73af\u5883\u3002\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt install python3-venv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><br \/>\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\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<\/li>\n<li>\n<p><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong><br \/>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u6240\u6709Python\u5305\u5c06\u5b89\u88c5\u5728\u8be5\u73af\u5883\u4e2d\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40Python\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u9879\u76ee\u4f9d\u8d56<\/strong><br \/>\u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u5b89\u88c5\u9879\u76ee\u6240\u9700\u7684Python\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install package-name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9000\u51fa\u865a\u62df\u73af\u5883<\/strong><br \/>\u5b8c\u6210\u5f00\u53d1\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<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u5728\u5b89\u88c5Python\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6743\u9650\u4e0d\u8db3<\/strong><br \/>\u5982\u679c\u5728\u4f7f\u7528<code>sudo<\/code>\u547d\u4ee4\u65f6\u9047\u5230\u6743\u9650\u4e0d\u8db3\u7684\u95ee\u9898\uff0c\u786e\u4fdd\u7528\u6237\u5177\u6709sudo\u6743\u9650\uff0c\u6216\u8005\u8054\u7cfb\u7cfb\u7edf\u7ba1\u7406\u5458\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u51b2\u7a81<\/strong><br \/>\u5982\u679c\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u591a\u4e2aPython\u7248\u672c\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u7248\u672c\u51b2\u7a81\u3002\u4f7f\u7528\u865a\u62df\u73af\u5883\u53ef\u4ee5\u6709\u6548\u907f\u514d\u6b64\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5305\u7ba1\u7406\u5668\u9519\u8bef<\/strong><br \/>\u5728\u4f7f\u7528APT\u5b89\u88c5\u8f6f\u4ef6\u5305\u65f6\uff0c\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u547d\u4ee4\u4fee\u590d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt --fix-broken install<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f51\u7edc\u95ee\u9898<\/strong><br \/>\u5982\u679c\u5728\u4e0b\u8f7dPython\u6e90\u7801\u5305\u65f6\u9047\u5230\u7f51\u7edc\u95ee\u9898\uff0c\u53ef\u4ee5\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\uff0c\u6216\u8005\u5c1d\u8bd5\u4f7f\u7528\u4ee3\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u6df1\u5ea6OS\u4e0a\u6210\u529f\u5b89\u88c5Python\uff0c\u5e76\u6839\u636e\u9700\u8981\u8bbe\u7f6e\u865a\u62df\u73af\u5883\u4ee5\u4fbf\u8fdb\u884c\u5f00\u53d1\u3002\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5b89\u88c5\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u4f7f\u7528Python\u8fdb\u884c\u9879\u76ee\u5f00\u53d1\u548c\u5b66\u4e60\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u6df1\u5ea6OS\u652f\u6301\u54ea\u4e9bPython\u7248\u672c\uff1f<\/strong><br \/>\u6df1\u5ea6OS\u901a\u5e38\u652f\u6301\u591a\u4e2aPython\u7248\u672c\uff0c\u5305\u62ecPython 2\u548cPython 3\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u7248\u672c\u3002\u4e3a\u4e86\u786e\u4fdd\u517c\u5bb9\u6027\uff0c\u5efa\u8bae\u4f7f\u7528Python 3\u7684\u6700\u65b0\u7a33\u5b9a\u7248\u672c\uff0c\u56e0\u4e3aPython 2\u5df2\u4e8e2020\u5e74\u505c\u6b62\u652f\u6301\u3002<\/p>\n<p><strong>\u5728\u6df1\u5ea6OS\u4e0a\u5b89\u88c5Python\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728\u6df1\u5ea6OS\u4e0a\uff0c\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff08\u5982apt\u6216pip\uff09\u662f\u5b89\u88c5Python\u7684\u63a8\u8350\u65b9\u5f0f\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>sudo apt install python3<\/code>\u6765\u5b89\u88c5Python 3\uff0c\u6216\u8005\u4f7f\u7528<code>sudo apt install python<\/code>\u6765\u5b89\u88c5Python 2\u3002\u6b64\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u901a\u8fc7Anaconda\u7b49\u5de5\u5177\u6765\u7ba1\u7406Python\u73af\u5883\u548c\u5e93\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6df1\u5ea6OS\u4e0a\u5b89\u88c5\u7279\u5b9a\u7684Python\u5e93\uff1f<\/strong><br \/>\u7528\u6237\u53ef\u4ee5\u901a\u8fc7pip\u5de5\u5177\u5b89\u88c5Python\u5e93\u3002\u5728\u7ec8\u7aef\u4e2d\uff0c\u8f93\u5165<code>pip install \u5e93\u540d<\/code>\u5373\u53ef\u5b89\u88c5\u6240\u9700\u7684\u5e93\u3002\u4f8b\u5982\uff0c\u5982\u679c\u9700\u8981\u5b89\u88c5NumPy\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<code>pip install numpy<\/code>\u3002\u786e\u4fdd\u5728\u5b89\u88c5\u4e4b\u524d\u5df2\u7ecf\u5b89\u88c5\u4e86pip\u5de5\u5177\uff0c\u5982\u679c\u672a\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7<code>sudo apt install python3-pip<\/code>\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u6df1\u5ea6OS\u5b89\u88c5Python\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u5546\u5e97\u3001\u7ec8\u7aef\u547d\u4ee4\u3001\u6e90\u7801\u7f16\u8bd1\u7b49\u591a\u79cd\u65b9\u5f0f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u786e\u4fddPython\u7684\u6b63 [&hellip;]","protected":false},"author":3,"featured_media":962332,"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\/962327"}],"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=962327"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/962327\/revisions"}],"predecessor-version":[{"id":962335,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/962327\/revisions\/962335"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/962332"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=962327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=962327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=962327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}