Skip to content

Instantly share code, notes, and snippets.

@yedamao
Last active January 15, 2024 03:25
Show Gist options
  • Save yedamao/230ae4460ce80b2f3b270047cf9bbca8 to your computer and use it in GitHub Desktop.
Save yedamao/230ae4460ce80b2f3b270047cf9bbca8 to your computer and use it in GitHub Desktop.
centos 7 install python3.8
VERSION=3.8.18
sudo yum -y install wget
wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz
tar xvf Python-$VERSION.tgz && cd Python-$VERSION/
./configure --enable-optimizations --enable-shared
make -j 8
sudo make altinstall
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment