Last active
March 17, 2019 13:49
-
-
Save keitetran/8a6589e7df0644075f52cd4ed781908c to your computer and use it in GitHub Desktop.
Install python 3.7.2 for rasbian - chmod a+x setup-python-3.7.2.sh
This file contains hidden or 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
sudo apt-get update -y | |
sudo apt-get install build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y | |
sudo wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz | |
sudo tar xf Python-3.7.2.tar.xz | |
cd Python-3.7.2 | |
./configure --prefix=/usr/local/opt/python-3.7.2 | |
make -j 4 | |
sudo make altinstall | |
cd .. | |
sudo rm -r Python-3.7.2 | |
rm Python-3.7.2.tar.xz | |
sudo apt-get --purge remove build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y | |
sudo apt-get autoremove -y | |
sudo apt-get clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo wget https://gist.githubusercontent.com/keitetran/8a6589e7df0644075f52cd4ed781908c/raw/f07f0c14fa16f81c875fd5d46f050023a2412219/setup-python-3.7.2.sh
chmod a+x setup-python-3.7.2.sh