Skip to content

Instantly share code, notes, and snippets.

@tporto
Last active March 29, 2018 15:38
Show Gist options
  • Save tporto/7a68d812b2b3e8c7c936558ad498068d to your computer and use it in GitHub Desktop.
Save tporto/7a68d812b2b3e8c7c936558ad498068d to your computer and use it in GitHub Desktop.
Instalar o python 3.5 no Ubuntu/elementary OS
sudo apt-get install sqlite3 libsqlite3-dev libreadline-dev libssl-dev build-essential
#depois o python...
cd /opt
sudo wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
sudo tar -xzvf Python-3.6.5.tgz
cd Python-3.6.5/
sudo ./configure
sudo make
sudo make install
sudo apt-get install python3-dev python3-pip python3-setuptools
#Opcional
#Usar a versão como default, caso seja necessário:
sudo ln -fs /opt/Python-3.5.2/python /usr/bin/python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment