Skip to content

Instantly share code, notes, and snippets.

@muslu
Last active March 17, 2021 10:22
Show Gist options
  • Save muslu/3992236b1aeaf975598fcb6c546839cc to your computer and use it in GitHub Desktop.
Save muslu/3992236b1aeaf975598fcb6c546839cc to your computer and use it in GitHub Desktop.
Install Python3.6 on Alpine
cd /tmp/
apk add build-base zlib-dev openssl-dev nano
wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz
tar xvf Python-3.6.9.tgz
rm -rf Python-3.6.9.tgz
cd Python-3.6.9
./configure --with-ensurepip=install --without-tests --disable-tests
make -j8 build_all
make -j8 altinstall
cd ..
rm -rf Python-3.6.9/
ln -s /usr/local/bin/python3.6 python
ln -s /usr/local/bin/pip3.6 pip
python3.6 -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment