Skip to content

Commit d90b4a3

Browse files
committed
Added gitbook variable for minimum version of python
1 parent bebcedb commit d90b4a3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

book.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"variables": {
44
"py_version": "3.9",
55
"py_release": "3.9.0",
6+
"py_min_version": "3.6.0",
67
"pa_py_version": "3.8",
78
"django_version": "2.2.4"
89
},

en/python_installation/instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
> This section is based on a tutorial by Geek Girls Carrots (https://github.com/ggcarrots/django-carrots)
44
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 the latest version of Python 3, so if you have any earlier version, you will need to upgrade it. If you already have version 3.4 or higher you should be fine.
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 the latest version of Python 3, so if you have any earlier version, you will need to upgrade it. If you already have version {{ book.py_min_version }} or higher you should be fine.
66

77
Please install normal Python as follows, even when you have Anaconda installed on your computer.
88

@@ -24,7 +24,7 @@ When the installation completes, you may see a dialog box with a link you can fo
2424

2525
Note: if you are using an older version of Windows (7, Vista, or any older version) and the Python {{ book.py_version }}.x installer fails with an error, you can try either:
2626
1. install all Windows Updates and try to install Python again; or
27-
2. install an [older version of Python](https://www.python.org/downloads/windows/), e.g., [3.4.6](https://www.python.org/downloads/release/python-346/).
27+
2. install an [older version of Python](https://www.python.org/downloads/windows/), e.g., [{{ book.py_min_version }}](https://www.python.org/downloads/release/python-346/).
2828

2929
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":
3030

@@ -55,7 +55,7 @@ $ python3 --version
5555
Python {{ book.py_release }}
5656
```
5757

58-
If you have a different version of Python installed, at least 3.4.0 (e.g. {{ book.py_release }}), then you don't have to upgrade. If you don't have Python installed, or if you want a different version, first check what Linux distribution you are using with the following command:
58+
If you have a different version of Python installed, at least {{ book.py_min_version }} (e.g. {{ book.py_release }}), then you don't have to upgrade. If you don't have Python installed, or if you want a different version, first check what Linux distribution you are using with the following command:
5959

6060
{% filename %}command-line{% endfilename %}
6161
```
@@ -112,7 +112,7 @@ Python {{ book.py_release }}
112112
```
113113
The version shown may be different from {{ book.py_release }} -- it should match the version you installed.
114114

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 that is 3.4.0 or higher. If that doesn't work either, you may open a new command prompt and try again; this happens if you use a command prompt left open from before the Python installation.
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 that is {{ book.py_min_version }} or higher. If that doesn't work either, you may open a new command prompt and try again; this happens if you use a command prompt left open from before the Python installation.
116116

117117
----
118118

0 commit comments

Comments
 (0)