python解释器安装:
python3.8安装
下载python软件
wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz
创建目录
mkdir -p /usr/local/python3
解压
tar -zxvf Python-3.8.2.tgz
yum install gcc -y
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
3.7 版本之后需要 libffi-devel、zlib
安装即可:yum install libffi-devel -y
yum install zlib*
cd Python-3.8.2
./configure --with-ssl --prefix=/usr/local/python3 #/usr/local/python3 为上面步骤创建的目录
make
make install
检查 python3 的编译器:/usr/local/python3/bin/python3
建立 Python3 和 pip3 的软链:ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
####pyinstaller打包模块安装
ln -s /usr/local/python3/bin/pyinstaller /usr/bin/pyinstaller