Last active
March 17, 2021 10:22
-
-
Save muslu/3992236b1aeaf975598fcb6c546839cc to your computer and use it in GitHub Desktop.
Install Python3.6 on Alpine
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
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