which python
which python3
Entendendo a resposta:
- Se retornar nada, então não há instalação de python
- Se retornar um endereço para um deles, entao há uma instalaçao de Python ** O primeiro representa Python2 e o segundo Python3. Já estamos em Python3. Use Python3. <3
msiexec /i python<version>.msi
msiexec /a python<version>.msi
$ sudo apt-get update
$ sudo apt-get install python3
$ python3 --version
Você precisa do homebrew para instalar Python. Calma, é da Apple mesmo!
#instala o command line tools
$ xcode-select --install
# instala o brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#só verifica se foi instalado mesmo
$ brew doctor
Resposta desejada: "Your system is ready to brew."
$ brew install python3
Confira a versão:
$ python3 --version
Tem que fazer download mesmo... não achei command line para instalação do pip. Link aqui
$ sudo apt-get install python-pip
$ sudo easy_install pip