{"id":1174355,"date":"2025-01-15T17:16:36","date_gmt":"2025-01-15T09:16:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1174355.html"},"modified":"2025-01-15T17:16:42","modified_gmt":"2025-01-15T09:16:42","slug":"linuex18%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1174355.html","title":{"rendered":"linuex18\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\/26075908\/0df3205b-9846-4d22-b697-722a2840b977.webp\" alt=\"linuex18\u5982\u4f55\u5b89\u88c5python\" \/><\/p>\n<p><p> <strong>Linux\u4e0b\u5b89\u88c5Python\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3001\u901a\u8fc7\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5\u3001\u4f7f\u7528Pyenv\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u7b49\u3002<\/strong>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u901a\u8fc7\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u548c\u901a\u8fc7\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u901a\u8fc7\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u5b89\u88c5Python<\/h3>\n<\/p>\n<p><p>\u5927\u591a\u6570Linux\u53d1\u884c\u7248\u90fd\u5e26\u6709Python\uff0c\u5e76\u4e14\u53ef\u4ee5\u901a\u8fc7\u7cfb\u7edf\u81ea\u5e26\u7684\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5\u6216\u5347\u7ea7Python\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1Linux\u53d1\u884c\u7248\u7684\u5b89\u88c5\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001Ubuntu\/Debian<\/h4>\n<\/p>\n<p><p>\u5728Ubuntu\u6216Debian\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>apt<\/code>\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt install python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u5b89\u88c5pip\uff08Python\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff09\uff0c\u53ef\u4ee5\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt install python3-pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001CentOS\/RHEL<\/h4>\n<\/p>\n<p><p>\u5728CentOS\u6216RHEL\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>yum<\/code>\u6216<code>dnf<\/code>\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo yum install python3<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>sudo dnf install python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u5b89\u88c5pip\uff0c\u53ef\u4ee5\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo yum install python3-pip<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>sudo dnf install python3-pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001Arch Linux<\/h4>\n<\/p>\n<p><p>\u5728Arch Linux\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pacman<\/code>\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo pacman -S python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u5b89\u88c5pip\uff0c\u53ef\u4ee5\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo pacman -S python-pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u901a\u8fc7\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5Python<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u7cfb\u7edf\u81ea\u5e26\u7684Python\u7248\u672c\u5e76\u4e0d\u662f\u4f60\u9700\u8981\u7684\u7248\u672c\uff0c\u6216\u8005\u4f60\u9700\u8981\u5b89\u88c5\u591a\u4e2a\u4e0d\u540c\u7248\u672c\u7684Python\uff0c\u8fd9\u65f6\u53ef\u4ee5\u901a\u8fc7\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5\u4f9d\u8d56<\/h4>\n<\/p>\n<p><p>\u5728\u7f16\u8bd1\u5b89\u88c5Python\u4e4b\u524d\uff0c\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5fc5\u5907\u7684\u4f9d\u8d56\u5e93\u3002\u4ee5Ubuntu\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\u4f9d\u8d56\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt install build-essential libssl-dev libffi-dev python3-dev<\/p>\n<p>sudo apt install libbz2-dev libsqlite3-dev<\/p>\n<p>sudo apt install libreadline-dev libncursesw5-dev tk-dev<\/p>\n<p>sudo apt install libgdbm-dev libc6-dev liblzma-dev<\/p>\n<p>sudo apt install zlib1g-dev<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4e0b\u8f7dPython\u6e90\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u524d\u5f80Python\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E4%BD%A0%E9%9C%80%E8%A6%81%E7%9A%84Python%E7%89%88%E6%9C%AC%E7%9A%84%E6%BA%90%E4%BB%A3%E7%A0%81%E3%80%82%E4%BD%A0%E4%B9%9F%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%60wget%60%E5%91%BD%E4%BB%A4%E7%9B%B4%E6%8E%A5%E4%B8%8B%E8%BD%BD%EF%BC%9A\">https:\/\/www.python.org\/\uff09\uff0c\u4e0b\u8f7d\u4f60\u9700\u8981\u7684Python\u7248\u672c\u7684\u6e90\u4ee3\u7801\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528`wget`\u547d\u4ee4\u76f4\u63a5\u4e0b\u8f7d\uff1a<\/a><\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">wget https:\/\/www.python.org\/ftp\/python\/3.9.7\/Python-3.9.7.tgz<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u89e3\u538b\u6e90\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>tar<\/code>\u547d\u4ee4\u89e3\u538b\u4e0b\u8f7d\u7684\u6e90\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">tar -xf Python-3.9.7.tgz<\/p>\n<p>cd Python-3.9.7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u914d\u7f6e\u3001\u7f16\u8bd1\u548c\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u914d\u7f6e\u7f16\u8bd1\u73af\u5883\uff0c\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">.\/configure --enable-optimizations --prefix=\/usr\/local\/python3.9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u7f16\u8bd1\u6e90\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">make<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7f16\u8bd1\u5b8c\u6210\u540e\uff0c\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo make altinstall<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6ce8\u610f\uff1a\u4f7f\u7528<code>altinstall<\/code>\u800c\u4e0d\u662f<code>install<\/code>\uff0c\u4ee5\u907f\u514d\u8986\u76d6\u7cfb\u7edf\u7684\u9ed8\u8ba4Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h4>5\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<\/p>\n<p><p>\u5c06\u65b0\u5b89\u88c5\u7684Python\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u7f16\u8f91<code>~\/.bashrc<\/code>\u6216<code>~\/.zshrc<\/code>\u6587\u4ef6\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export PATH=&quot;\/usr\/local\/python3.9\/bin:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4f7f\u914d\u7f6e\u751f\u6548\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source ~\/.bashrc<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>source ~\/.zshrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Pyenv\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c<\/h3>\n<\/p>\n<p><p>Pyenv\u662f\u4e00\u4e2aPython\u7248\u672c\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u5b89\u88c5\u548c\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Pyenv<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5Pyenv\u7684\u4f9d\u8d56\u9879\u3002\u4ee5Ubuntu\u4e3a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt 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<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Pyenv\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">curl https:\/\/pyenv.run | bash<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6309\u7167\u5c4f\u5e55\u63d0\u793a\uff0c\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\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4f7f\u914d\u7f6e\u751f\u6548\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source ~\/.bashrc<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>source ~\/.zshrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528Pyenv\u5b89\u88c5Python<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u53ef\u7528\u7684Python\u7248\u672c\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv install --list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9009\u62e9\u4f60\u9700\u8981\u7684Python\u7248\u672c\u8fdb\u884c\u5b89\u88c5\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv install 3.9.7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u5168\u5c40\u9ed8\u8ba4\u7684Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv global 3.9.7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f60\u4e5f\u53ef\u4ee5\u4e3a\u67d0\u4e2a\u7279\u5b9a\u7684\u9879\u76ee\u76ee\u5f55\u8bbe\u7f6ePython\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cd your_project_directory<\/p>\n<p>pyenv local 3.9.7<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u9a8c\u8bc1\u5b89\u88c5<\/h4>\n<\/p>\n<p><p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u9a8c\u8bc1Python\u7248\u672c\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u521a\u521a\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728Linux\u7cfb\u7edf\u4e0a\u5b89\u88c5\u548c\u7ba1\u7406Python\u3002<strong>\u901a\u8fc7\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u5b89\u88c5Python\u9002\u5408\u4e00\u822c\u7528\u6237\uff0c\u64cd\u4f5c\u7b80\u5355\u5feb\u6377\uff1b\u901a\u8fc7\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5Python\u9002\u5408\u9700\u8981\u7279\u5b9a\u7248\u672c\u6216\u5b9a\u5236\u5316\u9700\u6c42\u7684\u7528\u6237\uff0c\u7075\u6d3b\u6027\u8f83\u9ad8\uff1b\u4f7f\u7528Pyenv\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u9002\u5408\u9700\u8981\u540c\u65f6\u4f7f\u7528\u591a\u4e2aPython\u7248\u672c\u7684\u5f00\u53d1\u8005\uff0c\u65b9\u4fbf\u800c\u9ad8\u6548\u3002<\/strong>\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u987a\u5229\u5728Linux\u7cfb\u7edf\u4e0a\u5b89\u88c5Python\uff0c\u5e76\u6109\u5feb\u5730\u8fdb\u884cPython\u5f00\u53d1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Linux18\u4e0a\u5b89\u88c5Python\u7684\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728Linux18\u4e0a\u5b89\u88c5Python\u7684\u6b65\u9aa4\u76f8\u5bf9\u7b80\u5355\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u8fdb\u884c\u5b89\u88c5\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u66f4\u65b0\u8f6f\u4ef6\u5305\u5217\u8868\uff1a<code>sudo apt update<\/code>\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528\u547d\u4ee4<code>sudo apt install python3<\/code>\u6765\u5b89\u88c5Python 3\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165<code>python3 --version<\/code>\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u5728Linux18\u4e0a\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u7684Python\u5417\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\u3002\u5728Linux18\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528pyenv\u8fd9\u6837\u7684\u5de5\u5177\u6765\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\u3002\u9996\u5148\u5b89\u88c5pyenv\uff0c\u7136\u540e\u4f7f\u7528\u5b83\u6765\u5b89\u88c5\u6240\u9700\u7684Python\u7248\u672c\u3002\u4f7f\u7528\u547d\u4ee4<code>pyenv install &lt;version&gt;<\/code>\u6765\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684Python\uff0c\u4f7f\u7528<code>pyenv global &lt;version&gt;<\/code>\u6765\u8bbe\u7f6e\u9ed8\u8ba4\u7248\u672c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Linux18\u4e0a\u68c0\u67e5Python\u7684\u5b89\u88c5\u8def\u5f84\uff1f<\/strong><br \/>\u68c0\u67e5Python\u7684\u5b89\u88c5\u8def\u5f84\u975e\u5e38\u7b80\u5355\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u547d\u4ee4<code>which python3<\/code>\uff0c\u7cfb\u7edf\u5c06\u663e\u793aPython 3\u7684\u5b89\u88c5\u8def\u5f84\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<code>python3 -c &quot;import sys; print(sys.executable)&quot;<\/code>\u6765\u83b7\u53d6\u66f4\u8be6\u7ec6\u7684\u8def\u5f84\u4fe1\u606f\u3002\u8fd9\u6837\uff0c\u60a8\u53ef\u4ee5\u786e\u5b9aPython\u7684\u786e\u5207\u4f4d\u7f6e\u4ee5\u53ca\u5176\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5728Linux18\u4e0a\u5b89\u88c5Python\u540e\uff0c\u5982\u4f55\u5b89\u88c5\u5e38\u7528\u7684Python\u5e93\uff1f<\/strong><br \/>\u5b89\u88c5Python\u540e\uff0c\u4f7f\u7528pip\u6765\u5b89\u88c5\u5e38\u7528\u7684\u5e93\u662f\u975e\u5e38\u65b9\u4fbf\u7684\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install &lt;package-name&gt;<\/code>\u6765\u5b89\u88c5\u6240\u9700\u7684\u5e93\u3002\u5982\u679c\u60a8\u9700\u8981\u5b89\u88c5\u591a\u4e2a\u5e93\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u4e2d\u5217\u51fa\u5b83\u4eec\uff0c\u4f8b\u5982<code>pip install numpy pandas matplotlib<\/code>\u3002\u786e\u4fddpip\u5df2\u7ecf\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7<code>pip --version<\/code>\u547d\u4ee4\u8fdb\u884c\u9a8c\u8bc1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Linux\u4e0b\u5b89\u88c5Python\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3001\u901a\u8fc7\u6e90\u4ee3\u7801\u7f16\u8bd1\u5b89\u88c5\u3001\u4f7f\u7528Pyenv\u7ba1\u7406\u591a\u4e2a [&hellip;]","protected":false},"author":3,"featured_media":1174360,"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\/1174355"}],"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=1174355"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1174355\/revisions"}],"predecessor-version":[{"id":1174363,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1174355\/revisions\/1174363"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1174360"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1174355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1174355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1174355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}