Skip to content

Instantly share code, notes, and snippets.

@ankyit
Last active May 21, 2019 06:15
Show Gist options
  • Save ankyit/62c82ec3181ed85c5d2b139c7a426c28 to your computer and use it in GitHub Desktop.
Save ankyit/62c82ec3181ed85c5d2b139c7a426c28 to your computer and use it in GitHub Desktop.
Python Programming - AOS
sudo -i
yum groupinstall -y "development tools"
yum install -y \
libffi-devel \
zlib-devel \
bzip2-devel \
openssl-devel \
ncurses-devel \
sqlite-devel \
readline-devel \
tk-devel \
gdbm-devel \
db4-devel \
libpcap-devel \
xz-devel \
expat-devel \
postgresql-devel
cd /usr/src
wget http://python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
tar xf Python-3.7.3.tar.xz
cd Python-3.7.3
./configure --enable-optimizations
make altinstall
exit
sudo -i
apt update -y
apt install -y \
wget \
build-essential \
libffi-dev \
libgdbm-dev \
libc6-dev \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libncurses5-dev \
libncursesw5-dev \
xz-utils \
tk-dev
cd /usr/src
wget http://python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
tar xf Python-3.7.3.tar.xz
cd Python-3.7.3
./configure --enable-optimizations
make altinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment