Last active
March 25, 2021 08:00
-
-
Save gscattolin/b705dfc0c994c70cb3eccb7f4221c933 to your computer and use it in GitHub Desktop.
Python installation with open ssl support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum -y update | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install openssl-devel bzip2-devel libffi-devel | |
wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz | |
tar xvf Python-3.8.5.tgz | |
cd Python-3.8.5 | |
./configure --with-ssl | |
make & make altinstall | |
ln -s /usr/local/bin/pip3.8 /usr/bin/pip3 | |
ln -s /usr/local/bin/python3.8 /usr/bin/python3 | |
ln -s /usr/share/pyshared/lsb_release.py /usr/local/lib/python3.9/site-packages/lsb_release.py | |
#set as alternative | |
update-alternatives --install /usr/bin/python python /usr/local/bin/python3.9 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment