Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yspreen
Last active July 13, 2018 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yspreen/431e17d1ab2f764b60b25a7b0f0a3371 to your computer and use it in GitHub Desktop.
Save yspreen/431e17d1ab2f764b60b25a7b0f0a3371 to your computer and use it in GitHub Desktop.
Install Python 3 on Pi
#!/bin/bash
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 -y
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
make -j4
sudo make install
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