Commit d8a239e4b1418b7681d8a1abad20264573c85f11
1 parent
f127382b
Exists in
master
and in
4 other branches
Add instructions for dealing with the Python 2 vs 3 mess
Showing
1 changed file
with
18 additions
and
1 deletions
Show diff stats
doc/install/installation.md
| ... | ... | @@ -38,7 +38,24 @@ Make sure your system is up-to-date: |
| 38 | 38 | |
| 39 | 39 | Install the required packages: |
| 40 | 40 | |
| 41 | - sudo apt-get install -y wget curl build-essential checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libreadline6-dev libc6-dev libssl-dev zlib1g-dev libicu-dev redis-server openssh-server git-core python2.7 libyaml-dev postfix | |
| 41 | + sudo apt-get install -y wget curl build-essential checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libreadline6-dev libc6-dev libssl-dev zlib1g-dev libicu-dev redis-server openssh-server git-core libyaml-dev postfix | |
| 42 | + | |
| 43 | +Make sure you have the right version of Python installed. | |
| 44 | + | |
| 45 | + # Install Python | |
| 46 | + sudo apt-get install python | |
| 47 | + | |
| 48 | + # Make sure that Python is 2.x (3.x is not supported at the moment) | |
| 49 | + python --version | |
| 50 | + | |
| 51 | + # If it's Python 3 you might need to install Python 2 separately | |
| 52 | + sudo apt-get install python2.7 | |
| 53 | + | |
| 54 | + # Make sure you can access Python via `python2` | |
| 55 | + python2 --version | |
| 56 | + | |
| 57 | + # If you get a "command not found" error create a link to the python binary | |
| 58 | + sudo ln -s /usr/bin/python /usr/bin/python2 | |
| 42 | 59 | |
| 43 | 60 | |
| 44 | 61 | # 2. Ruby | ... | ... |