AINSTALLING PYTHON

image

Python has several different versions and a number of ways it can be set up on each operating system. This appendix is useful if the approach in Chapter 1 didn’t work, or if you want to install a different version of Python than the one that came with your system.

Python on Linux

Python is included by default on almost every Linux system, but you might want to use a different version than the default. If so, first find out which version of Python you already have installed.

Finding the Installed Version

Open a terminal window and issue the following command:

$ python --versionPython 2.7.6

The result shows that the default version ...

Get Python Crash Course now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.