Skip to content

Commit 1622e08

Browse files
committed
Add sectionx and use in Python installation
1 parent b716ac9 commit 1622e08

2 files changed

Lines changed: 30 additions & 8 deletions

File tree

book.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
1313
"language-picker",
1414
"sidebar-ad",
15-
"codeblock-label"
15+
"codeblock-label",
16+
"sectionx"
1617
],
1718
"pluginsConfig": {
1819
"ga": {

en/python_installation/instructions.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
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.
66

77

8-
### Windows
8+
<!--sec data-title="Windows" data-id="python_windows" data-collapse=false ces-->
99

1010
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!
1111

@@ -15,7 +15,10 @@ One thing to watch out for: on the second screen of the installation wizard, ma
1515

1616
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.)
1717

18-
### Linux
18+
<!--endsec-->
19+
20+
<!--sec data-title="Linux" data-id="python_linux"
21+
data-collapse=true ces-->
1922

2023
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:
2124

@@ -28,7 +31,10 @@ Python 3.5.1
2831
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:
2932

3033

31-
#### Debian or Ubuntu
34+
<!--endsec-->
35+
36+
<!--sec data-title="Debian or Ubuntu" data-id="python_debian"
37+
data-collapse=true ces-->
3238

3339
Type this command into your console:
3440

@@ -37,7 +43,11 @@ Type this command into your console:
3743
$ sudo apt-get install python3.5
3844
```
3945

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+
4151

4252
Use this command in your console:
4353

@@ -46,7 +56,10 @@ Use this command in your console:
4656
$ sudo yum install python3
4757
```
4858

49-
#### Fedora (22+)
59+
<!--endsec-->
60+
61+
<!--sec data-title="Fedora (22+)" data-id="python_fedora22"
62+
data-collapse=true ces-->
5063

5164
Use this command in your console:
5265

@@ -55,7 +68,10 @@ Use this command in your console:
5568
$ sudo dnf install python3
5669
```
5770

58-
#### openSUSE
71+
<!--endsec-->
72+
73+
<!--sec data-title="openSUSE" data-id="python_openSUSE"
74+
data-collapse=true ces-->
5975

6076
Use this command in your console:
6177

@@ -64,7 +80,10 @@ Use this command in your console:
6480
$ sudo zypper install python3
6581
```
6682

67-
### OS X
83+
<!--endsec-->
84+
85+
<!--sec data-title="OSX" data-id="python_OSX"
86+
data-collapse=true ces-->
6887

6988
> **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."
7089
@@ -73,6 +92,8 @@ You need to go to the website https://www.python.org/downloads/release/python-35
7392
* Download the *Mac OS X 64-bit/32-bit installer* file,
7493
* Double click *python-3.5.1-macosx10.6.pkg* to run the installer.
7594

95+
<!--endsec-->
96+
7697
Verify the installation was successful by opening the *Terminal* application and running the `python3` command:
7798

7899
{% filename %}command-line{% endfilename %}

0 commit comments

Comments
 (0)