默认kali 等一些发行版本的Linux是没有安装pip 的,导致python 的组件无法安装,本文用最简单的方法安装pip
- 首先下载获取pip 文件的脚本
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
上面命令执行完之后会在当前目录保存一个 “get-pip.py” 文件
- 最后直接执行下面 pip 的安装命令即可
python get-pip.py
- 安装成功如下
root@kk:~/soft# python get-pip.py
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pip
Downloading pip-20.2.3-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 350 kB/s
Collecting wheel
Downloading wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Installing collected packages: pip, wheel
Successfully installed pip-20.2.3 wheel-0.35.1
验证是否安装成功(就是这么简单,两条命令搞定)