# Python 提示错误 Pip

**URL:** <https://www.isharkfly.com/t/python-pip/13660>\
**Category:** 程序语言\
**Tags:** python\
**Created:** [August 7, 2021, 11:34am UTC](https://www.isharkfly.com/t/python-pip/13660 "2021-08-07T11:34:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [August 7, 2021, 11:34am UTC](https://www.isharkfly.com/t/python-pip/13660/1 "2021-08-07T11:34:57Z")

</div>

Ubuntu 在安装 pip 的时候提示错误：

```auto
ubuntu@ns524146:~$ sudo python3 -m pip install --user ansible
/usr/bin/python3: No module named pip
ubuntu@ns524146:~$ ^C

```

 ![2025-04-01_16-00-00](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/e/f/ef510b9d2182e76be1972a77f6572e5b75ee3fb7.jpeg)

## 问题和解决

可以通过安装一个 Pip 来解决这个问题。

安装的命令为：`sudo apt install python3-pip`

系统界面的输出为：

 ![2025-04-01_16-06-25](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/4/b/4bbfc432d936db28586717be57fc0107587998e0.jpeg)
