pip 是一个现代的,通用的 Python 包管理工具 。提供了对Python 包的查找、下载、安装、卸载的功能。
官方提供的pip 示例
$ pip install requests
$ pip search xml
$ pip show beautifulsoup4
$ pip uninstall requests
以上内容参考自百度百科。
首先在保证python环境安装成功的前提下,安装pip。
![](https://img2018.cnblogs.com/blog/1477224/201904/1477224-20190401104153196-1312295581.png)
![](https://img2018.cnblogs.com/blog/1477224/201904/1477224-20190401104153196-1312295581.png)
接着在终端的当前目录下,先下载https://bootstrap.pypa.io/get-pip.py,然后直接sudo python get-pip.py,pip就安装好了。
![](https://img2018.cnblogs.com/blog/1477224/201904/1477224-20190401104401643-1522085121.png)
最后检查pip是否安装成功:
![](https://img2018.cnblogs.com/blog/1477224/201904/1477224-20190401104503007-1072441650.png)
![](https://img2018.cnblogs.com/blog/1477224/201904/1477224-20190401104503007-1072441650.png)