wget https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tgz
tar -zxvf Python-3.7.8.tgz
cd Python-3.7.8
yum install libffi-devel -y
yum -y install openssl openssl-devel
yum -y install gcc
yum -y install zlib*
yum -y install bzip2-devel
ls -l /usr/lib64/python2.7/lib-dynload/bz2.so
sudo cp /usr/lib64/python2.7/lib-dynload/bz2.so /usr/local/python37/lib
./configure -prefix=/usr/local/python37 --enable-shared --with-ssl

make && make install
ln -s /usr/local/python37/bin/python3.7 /usr/bin/python3
cp -a /usr/local/python37/lib/libpython3.7m.so.1.0 /usr/lib64
python3 -V

python3 -m pip install pymysql
python3 -m pip install SQLAlchemy
python3 -m pip install openpyxl
Last modification:December 4th, 2021 at 08:58 pm