Interpretador Python no Ubuntu


Para utilizarmos o interpretador python no Ubuntu e derivados precisamos primeiro verificar a versão do interpretador que já vem instalado por padrão no sistema. Para isso, rode o seguinte comando no terminal:
ls -l /usr/bin/python*
Esse comando vai te levar até o local onde o python está instalado em seu sistema. Uma maneira mais simples de obter a versão do interpretador atualmente instalado é com o seguinte comando:
python3 -V
Se o Pytho 3 já estiver instalado em seu sistema, ele vai ser atualizado junto com o resto do sistema a partir dos seguintes comandos:
sudo apt-get update
sudo apt-get upgrade
Para finalizar você pode instalar o IDLE python. Esse é um ambiente gráfico de desenvolvimento python. Para instalar o IDLE digite no terminal:
sudo apt-get install idle
Para rodar o IDLE python digite:
idle&
Pronto! Agora é com você. Divirta-se!
Subscribe to my newsletter
Read articles from Nathan Virgílio directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
