-
-
Save Zacharyprime/702d798340c0906d70a446f0a1b189d6 to your computer and use it in GitHub Desktop.
Install python 3.6 on your RPi!
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 | |
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.0/Python-3.6.0.tar.xz | |
tar xf Python-3.6.0.tar.xz | |
cd Python-3.6.0 | |
./configure | |
make | |
sudo make altinstall | |
echo "Do you wish to delete the source code and uninstall all previously installed packages? {Y/N} (Case sensitive!)" | |
read ans | |
if [ans = "Y"] | |
then | |
sudo rm -r Python-3.6.0 | |
rm Python-3.6.0.tgz | |
sudo apt-get --purge remove build-essential tk-dev | |
sudo apt-get --purge remove libncurses5-dev libncursesw5-dev libreadline6-dev | |
sudo apt-get --purge remove libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev | |
sudo apt-get --purge remove libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev | |
sudo apt-get autoremove | |
sudo apt-get clean | |
else | |
echo "Done!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could add the replacement step as an optional step then update pip with
/usr/local/bin/python3.6 -m pip ...
. Also would removebuild-essential
but idk that's up to you