Python installation

Here, we detail the installation of Python on multiple platforms – Linux, Windows, and Mac OS X.


If you're using Linux, Python most probably came pre-installed. If you're not sure, type the following at the command prompt:

   which python

Python is likely to be found in one of the following folders on Linux depending upon your distribution and particular installation:

  • /usr/bin/python
  • /bin/python
  • /usr/local/bin/python
  • /opt/local/bin/python

You can determine which particular version of Python is installed, by typing the following in the command prompt:

python --version

In the rare event that Python isn't already installed, you need to figure out which flavor of Linux you're using, then download and install it. Here are the install ...

Get Mastering pandas now with O’Reilly online learning.

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