Created
June 27, 2018 05:23
-
-
Save danielsayidi/5df4718b2116cbd5b6707fcd9e3b088e to your computer and use it in GitHub Desktop.
Installing python3.6.5 on debain9.4
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
make sure your system is upgraded by typing these comments | |
sudo apt update | |
sudo apt upgrade | |
Next, install the default GCC toolchain with: | |
sudo apt install build-essential | |
Next, we need to install a few prerequisites for building Python: | |
sudo apt install libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev | |
sudo apt install libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev | |
At the time of this writing, the latest stable version of Python is 3.6.5, if you want to use a newer version change the next instructions accordingly: | |
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz | |
tar xf Python-3.6.5.tar.xz | |
cd Python-3.6.5 | |
./configure --enable-optimizations | |
make -j 8 | |
sudo make altinstall | |
Once the above is finished, you could invoke the new Python interpreter with: | |
python3.6 | |
Now everything is working! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment