官网下载:Python-3.8版本
下载到本地:
上传到kali:
解压:
tar -zxvf Python-3.8.17.tgz
进入:
cd Python-3.8.17
编译之前,安装一些所要依赖的包:
apt-get 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
编译安装:
./configure --enable-optimizations --prefix=/usr/local/Python-3.8/ && make && make install
时间久等下:
完成:建立软连接:
ln -s -b /usr/local/Python-3.8/bin/python3 /usr/bin/python
ln -s -b /usr/local/Python-3.8/bin/pip3 /usr/bin/pip3
打完收工:留下小爱心♥