Skip to content

Commit e7f646c

Browse files
committed
Use python3 explicitly
On a lot of systems `python` will refer to a parallel Python 2 installation so `python3` should be used when not working in a virtual environment.
1 parent 3bf57eb commit e7f646c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

django_installation/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ where `C:\Python34\python` is folder in which you previously installed Python an
2222

2323
Creating `virtualenv` in both Linux and OS X is as simple as typing in console (remember, that we expect that you have python 3.4 installed):
2424

25-
~$ python -m venv blog
25+
~$ python3 -m venv blog
2626

2727
### Working with virtualenv
2828

@@ -46,6 +46,8 @@ or:
4646

4747
so the prefix `(blog)` appears!
4848

49+
When working within a virtual environment, `python` will automatically refer to the correct version so you can use `python` instead of `python3`.
50+
4951
Ok, we have all important things in place. We can finally install Django!
5052

5153
## Installing Django

python_installation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can download Python for Windows from the website https://www.python.org/down
2020

2121
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), you type in a console:
2222

23-
$ python --version
23+
$ python3 --version
2424
Python 3.4.1
2525

2626
If you don't have Python installed or you want a different version, you can install it as follows.

python_introduction/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Let's write some code!
88

99
To start tinkering with Python, we need to open up a *prompt* on your computer. On Mac OS X you can do this by launching the `Terminal` application (it's in Applications → Utilities). On Windows you need to go to Start menu → All Programs → Accessories → Command Prompt. On Linux, it's probably under Applications → Accessories → Terminal.
1010

11-
A window should pop up on your screen. This window is a prompt, waiting for commands from you. We want to open up a Python console, so type in `python` and hit Enter.
11+
A window should pop up on your screen. This window is a prompt, waiting for commands from you. We want to open up a Python console, so type in `python3` and hit Enter.
1212

13-
(workshops) ~$ python
13+
(workshops) ~$ python3
1414
Python 3.4.1 (...)
1515
Type "copyright", "credits" or "license" for more information.
1616
>>>

0 commit comments

Comments
 (0)