Skip to content

Instantly share code, notes, and snippets.

@JulianaGuama
Created March 25, 2019 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JulianaGuama/3f2f1b7dbeabaaa65d046482c46fbd0f to your computer and use it in GitHub Desktop.
Save JulianaGuama/3f2f1b7dbeabaaa65d046482c46fbd0f to your computer and use it in GitHub Desktop.
Python install

Windows, Linux ou Mac

Passo 1: Verificando se há python na máquina

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

Passo 2: Instalando Python:

Windows

msiexec /i python<version>.msi
msiexec /a python<version>.msi

Linux

$ sudo apt-get update
$ sudo apt-get install python3
$ python3 --version

Mac

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

Passo 3: Instalando pip

Windows:

Tem que fazer download mesmo... não achei command line para instalação do pip. Link aqui

Linux:

$ sudo apt-get install python-pip

Mac:

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