
In this post we are going to share how to install python on three different platform.
- Unix and Linux Installation
Here are the simple steps to install Python on Unix/Linux machine.
- Open a Web browser and go to http://www.python.org/download/
- Follow the link to download zipped source code available for Unix/Linux.
- Download and extract files.
- Editing the Modules/Setup file if you want to customize some options.
- run ./configure script
- make
- make install
This installs Python at standard location /usr/local/bin and its libraries at
/usr/local/lib/pythonXX where XX is the version of Python.
2. Windows Installation
Here are the steps to install Python on Windows machine.
- Open a Web browser and go to http://www.python.org/download/
- Follow the link for the Windows installer python-XYZ.msi file where XYZ is the version you need to install.
- To use this installer python-XYZ.msi, the Windows system must support Microsoft Installer 2.0. Save the installer file to your local machine and then run it to find out if your machine supports MSI.
- Run the downloaded file.
- This brings up the Python install wizard, which is really easy to use. Just accept the default settings, wait until the install is finished, and you are done.
3. Macintosh Installation
Recent Macs come with Python installed, but it may be several years out of date.
- See http://www.python.org/download/mac/ for instructions on getting the current version along with extra tools to support development on the Mac.
- For older Mac OS’s like before Mac OS X 10.3 (released in 2003), MacPython is available.
- Jack Jansen maintains it and you can have full access to the entire documentation at his website – http://www.cwi.nl/~jack/macpython.html .
- You can find complete installation details for Mac OS installation.
Running Python
There are three different ways to start Python-
(1) Interactive Interpreter
You can start Python from Unix, DOS, or any other system that provides you a command line interpreter or shell window.
→ $python # Unix/Linux or
→ python% # Unix/Linux
→ C:>python # Windows/DOS
(2) Script from the Command-line
→ save file with “.py” and execute it on command line
(3) Integrated Development Environment
→ Unix: IDLE is the very first Unix IDE for Python.
→ Windows: PythonWin is the first Windows interface for Python and is an IDE with a GUI.
→ Macintosh: MacBinary or BinHex’d files.
Hope this post will help you to start your journey with python. for more such post make sure to subscribe to our blog and follow us. Hit the like button that encourage us to write more.

