Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save danielnunesdc/4b7df6bdaeefcddcfd686204b6cea144 to your computer and use it in GitHub Desktop.

Select an option

Save danielnunesdc/4b7df6bdaeefcddcfd686204b6cea144 to your computer and use it in GitHub Desktop.

Como instalar o Python 3.6.5 no Ubuntu e Mint e Debian

Instalar Pacotes Necessarios. Abra o terminal com root

$ sudo apt-get install build-essential checkinstall
$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Baixe a versao mas recente no https://www.python.org/downloads

Descompacte a pasta que deve estar em tar.xz no Mint e Ubunto clique o botao direito do mouse e extrair aqui

agora entre na pasta que foi descompactada e digite o seguinte;

 $ sudo ./configure
 $ sudo make altinstall

( Não é install nesse caso é altinstall é usado para evitar a substituição do arquivo binário python padrão / usr / bin / python.)

Para testar digite: python3.6

Python 3.6.5 (default, Jun 9 2018, 17:32:38) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment