You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> For readers at home: this chapter is covered in the [Installing Python & Code Editor](https://www.youtube.com/watch?v=pVTaqzKZCdA) video.
1
+
> Leitores em casa: esse capítulo está disponível em vídeo (em inglês) [Installing Python & Code Editor](https://www.youtube.com/watch?v=pVTaqzKZCdA).
2
2
3
-
> This section is based on a tutorial by Geek Girls Carrots (https://github.com/ggcarrots/django-carrots)
3
+
> Essa seção é baseada em um tutorial feito por Geek Girls Carrots (https://github.com/ggcarrots/django-carrots)
4
4
5
-
Django is written in Python. We need Python to do anything in Django. Let's start by installing it! We want you to install Python 3.5, so if you have any earlier version, you will need to upgrade it.
5
+
O Django é escrito em Python. Nós precisamos de Python para fazer qualquer coisa com Django. Vamos começar instalando ele! Nós queremos que você instale o Python 3.5, então se você tiver alguma versão anterior, você precisará fazer uma atualização.
First check whether your computer is running a 32-bit version or a 64-bit version of Windows athttps://support.microsoft.com/en-au/kb/827218. You can download Python for Windows from the website https://www.python.org/downloads/windows/. Click on the "Latest Python 3 Release - Python x.x.x" link. If your computer is running a **64-bit**version of Windows, download the**Windows x86-64 executable installer**. Otherwise, download the**Windows x86 executable installer**. After downloading the installer, you should run it (double-click on it) and follow the instructions there.
10
+
Primeiro confirme se o seu computador está rodando uma versão 32-bit ou uma versão 64-bit do Windows emhttps://support.microsoft.com/en-au/kb/827218. Você pode baixar o Python para Windows a partir do site web https://www.python.org/downloads/windows/. Clique no link "Latest Python 3 Release - Python x.x.x". Se o seu computador está rodando uma versão **64-bit**do Windows, baixe o**Windows x86-64 executable installer**. Senão, baixe o**Windows x86 executable installer**. Após baixar o instalador, você deve executá-lo (duplo clique nele) e seguir as instruções apresentadas.
11
11
12
-
One thing to watch out for: During the installation you will notice a window marked "Setup". Make sure you tick the "Add Python 3.5 to PATH" checkbox and click on "Install Now", as shown here:
12
+
Uma coisa com que ter atenção: Durante a instalação você irá notar uma janela com a marcação "Setup". Certifique-se de selecionar "Add Python 3.5 to PATH" na caixa de seleção e clicar em "Install Now", como mostrado aqui:
13
13
14
-

14
+

15
15
16
-
In upcoming steps, you'll be using the Windows Command Line (which we'll also tell you about). For now, if you need to type in some commands, go to Start menu → All Programs → Accessories → Command Prompt. You can also hold in the Windows key and press the "R"-key until the "Run" window pops up. To open the Command Line, type "cmd" and press enter in the "Run" window. (On newer versions of Windows, you might have to search for "Command Prompt" since it's sometimes hidden.)
16
+
Nos passos a seguir, você usará a Linha de Comando do Windows (a qual nós iremos falar sobre com você). Por enquanto, se você precisar digitar alguns comandos, vá para o menu Iniciar → Todos os Programas → Acessórios → Prompt de Comando. Você pode também manter pressionada a tecla Windows e pressionar a tecla "R" até a janela "Executar" ("Run") aparecer. Para abrir a Linha de Comando, digite "cmd" e pressione o enter na janela "Executar" ("Run"). (Nas versões mais novas do Windows, você pode precisar pesquisar por "Prompt de Comando" ("Command Prompt"), já que ele, às vezes está escondido.)
17
17
18
-

18
+

19
19
20
-
Note: if you are using an older version of Windows (7, Vista, or any older version) and the Python 3.5.x installer fails with an error, you can try either:
21
-
1.install all Windows Updates and try to install Python 3.5 again; or
22
-
2.install an [older version of Python](https://www.python.org/downloads/windows/), e.g., [3.4.4](https://www.python.org/downloads/release/python-344/).
20
+
Nota: se você estiver usando uma versão antiga do Windows (7, Vista, ou qualquer uma anterior a essas) e o instalador do Python 3.5.x falhar com um erro, você pode tentar:
21
+
1.instalar todas as Atualizações do Windows e tentar instalar Python 3.5 novamente; ou
22
+
2.instalar uma [versão antiga do Python](https://www.python.org/downloads/windows/), por exemplo, [3.4.4](https://www.python.org/downloads/release/python-344/).
23
23
24
-
If you install an older version of Python, the installation screen may look a bit different than shown above. Make sure you scroll down to see "Add python.exe to Path", then click the button on the left and pick "Will be installed on local hard drive":
24
+
Se você instalar um versão antiga do Python, a tela de instalação pode parecer um pouco diferente da mostrada abaixo. Certifique-se de rolar a página para baixo para ver "Add python.exe to Path", e então clique no botão a esquerda e escolha "Will be installed on local hard drive":
25
25
26
-

26
+

27
27
28
28
<!--endsec-->
29
29
30
30
<!--sec data-title="OS X" data-id="python_OSX"
31
31
data-collapse=true ces-->
32
32
33
-
> **Note**Before you install Python on OS X, you should ensure your Mac settings allow installing packages that aren't from the App Store. Go to System Preferences (it's in the Applications folder), click "Security & Privacy," and then the "General" tab. If your "Allow apps downloaded from:" is set to "Mac App Store," change it to "Mac App Store and identified developers."
33
+
> **Nota**Antes de você instalar o Python no OS X, você deve ter certeza as configurações de seu Mac permitem a instalação de pacotes que não são de uma App Store. Vá até Preferências do Sistema (está na pasta Aplicações), clique em "Segurança & Privacidade," e então na aba "General". Se estiver configurado "Mac App Store" em "Allow apps downloaded from:", altere para "Mac App Store and identified developers."
34
34
35
-
You need to go to the website https://www.python.org/downloads/release/python-351/and download the Python installer:
35
+
Você precisa ir no site web https://www.python.org/downloads/release/python-351/e baixar o instalador Python:
36
36
37
-
*Download the *Mac OS X 64-bit/32-bit installer* file,
38
-
*Double click *python-3.5.1-macosx10.6.pkg*to run the installer.
37
+
*Baixe o arquivo *Mac OS X 64-bit/32-bit installer*,
38
+
*Duplo clique em *python-3.5.1-macosx10.6.pkg*para rodar o instalador.
39
39
40
40
<!--endsec-->
41
41
42
42
<!--sec data-title="Linux" data-id="python_linux"
43
43
data-collapse=true ces-->
44
44
45
-
It is very likely that you already have Python installed out of the box. To check if you have it installed (and which version it is), open a console and type the following command:
45
+
É bem provável que você já tenha o Python instalado. Para checar se você tem ele instalado (e qual versão é), abra o console e digite o seguinte comando:
46
46
47
47
{% filename %}command-line{% endfilename %}
48
48
```
49
49
$ python3 --version
50
50
Python 3.5.1
51
51
```
52
52
53
-
If you have a different 'micro version' of Python installed, e.g. 3.5.0, then you don't have to upgrade. If you don't have Python installed, or if you want a different version, you can install it as follows:
53
+
Se você tem uma 'micro versão' do Python diferente instalada, por exemplo 3.5.0, então você não precisa fazer uma atualização. Se você não tem o Python instalado, ou se você quer uma versão diferente, você pode instalá-la como a seguir:
Verify the installation was successful by opening the *Terminal*application and running the`python3` command:
107
+
Verifique se a instalação foi feita com sucesso abrindo a aplicação *Terminal*e executando o comando`python3`:
108
108
109
109
{% filename %}command-line{% endfilename %}
110
110
```
111
111
$ python3 --version
112
112
Python 3.5.1
113
113
```
114
114
115
-
**NOTE:**If you're on Windows and you get an error message that `python3`wasn't found, try using`python` (without the`3`) and check if it still might be a version of Python 3.5.
115
+
**NOTA:**Se você estiver no Windows e retornar uma mensagem de erro dizendo que o `python3`não foi encontrado, tente usando`python` (sem o`3`) e cheque se ainda pode ser a versão 3.5 do Python.
116
116
117
117
----
118
118
119
-
If you have any doubts, or if something went wrong and you have no idea what to do next, please ask your coach! Sometimes things don't go smoothly and it's better to ask for help from someone with more experience.
119
+
Se você tiver qualquer dúvida, ou se alguma coisa sair errado e você não tem ideia do que fazer, por favor pergunte ao seu treinador! Algumas vezes as coisas não correm de maneira fluida e é melhor pedir ajuda a alguém com mais experiência.
0 commit comments