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
Copy file name to clipboardExpand all lines: en/python_installation/instructions.md
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
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.
You can download Python for Windows from the website https://www.python.org/downloads/release/python-351/. After downloading the ***.msi** file, you should run it (double-click on it) and follow the instructions there. It is important to remember the path (the directory) where you installed Python. It will be needed later!
11
11
@@ -15,7 +15,10 @@ One thing to watch out for: on the second screen of the installation wizard, ma
15
15
16
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. (On newer versions of Windows, you might have to search for "Command Prompt" since it's sometimes hidden.)
17
17
18
-
### Linux
18
+
<!--endsec-->
19
+
20
+
<!--sec data-title="Linux" data-id="python_linux"
21
+
data-collapse=true ces-->
19
22
20
23
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:
21
24
@@ -28,7 +31,10 @@ Python 3.5.1
28
31
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:
29
32
30
33
31
-
#### Debian or Ubuntu
34
+
<!--endsec-->
35
+
36
+
<!--sec data-title="Debian or Ubuntu" data-id="python_debian"
37
+
data-collapse=true ces-->
32
38
33
39
Type this command into your console:
34
40
@@ -37,7 +43,11 @@ Type this command into your console:
37
43
$ sudo apt-get install python3.5
38
44
```
39
45
40
-
#### Fedora (up to 21)
46
+
<!--endsec-->
47
+
48
+
<!--sec data-title="Fedora (up to 21)" data-id="python_fedora"
49
+
data-collapse=true ces-->
50
+
41
51
42
52
Use this command in your console:
43
53
@@ -46,7 +56,10 @@ Use this command in your console:
@@ -64,7 +80,10 @@ Use this command in your console:
64
80
$ sudo zypper install python3
65
81
```
66
82
67
-
### OS X
83
+
<!--endsec-->
84
+
85
+
<!--sec data-title="OSX" data-id="python_OSX"
86
+
data-collapse=true ces-->
68
87
69
88
> **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."
70
89
@@ -73,6 +92,8 @@ You need to go to the website https://www.python.org/downloads/release/python-35
73
92
* Download the *Mac OS X 64-bit/32-bit installer* file,
74
93
* Double click *python-3.5.1-macosx10.6.pkg* to run the installer.
75
94
95
+
<!--endsec-->
96
+
76
97
Verify the installation was successful by opening the *Terminal* application and running the `python3` command:
0 commit comments