From 45afd2caa7900dcaec10d1b746941cd14cebb1fa Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Sat, 16 Jun 2018 07:29:40 -0700 Subject: [PATCH] Added instructions for installing python 2 --- docs/setup.htm | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/docs/setup.htm b/docs/setup.htm index 7371d9cf..3a164677 100644 --- a/docs/setup.htm +++ b/docs/setup.htm @@ -38,10 +38,18 @@

Install Prerequisites

-

Ensure that Python2 is installed. Python 2.6 or 2.7 will work, +

Ensure that Python 2 is installed. Python 2.6 or 2.7 will work, but Python 3 will not.

python -V
-

Then install required python packages using the package management software for your system (e.g., apt-get, yum, yast) or the Python Package Management System (pip). Select the appropriate tab for specific instructions.

+ +

If this does not work, then you may have to install Python 2. Instructions below.

+ +

Install the required python packages using the package management software for your system + (e.g., + apt-get, + yum, + yast) or the Python Package Management System + (pip). Select the appropriate tab for specific instructions.

Debian
@@ -53,11 +61,18 @@
# debian, ubuntu, mint, raspbian
 
-# required packages:
+# for systems that do not have python 2 installed (for example, ubuntu 18.04 and later):
+sudo apt-get install python
+
+# for ubuntu 18.04 and later:
+sudo apt-get install python-pil
+# for other debian systems:
+sudo apt-get install python-imaging
+
+# other required packages:
 sudo apt-get install python-configobj
-sudo apt-get install python-cheetah
-sudo apt-get install python-imaging
-          
+sudo apt-get install python-cheetah
+
 # required if hardware is serial or USB:
 sudo apt-get install python-serial
 sudo apt-get install python-usb