wget https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tgz
tar -zxvf Python-3.7.8.tgz
yum install libffi-devel -y
./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 mysqlclient
Last modification:July 15th, 2020 at 12:08 am