擅长:python、mysql、java
<p>好吧,另一种方法:</p>
<ol>
<li>首先,通过在终端中运行以下apt命令,确保您的系统包是最新的:
<ul>
<li><code>sudo apt update</code></li>
<li><code>sudo apt upgrade</code></li>
</ul></li>
<li>使用apt命令安装pip:
<ul>
<li><code>apt-get install python-pip</code></li>
<li>安装完成后,可以使用以下命令验证安装是否成功:<code>pip -V</code></li>
</ul></li>
<li>然后你可以使用:<code>pip install <package_name></code></li>
</ol>