Python: Learn the Basics FAST From Python Programming Experts (2015)

Chapter 2: Python Programming – Installation

This programming language can be installed on several operating systems. This chapter will discuss the installation procedures for three major systems: Unix, Windows, and Macintosh.

Unix

For Linux

Python is commonly a built-in program for most Linux devices. However, there may be some features that you want to apply but are not included on your original package. For this situation, you can conveniently use the most recent version of Python from its official website.

For OpenSolaris

If you want to install the latest version of Python on your OpenSolaris computer, install “blastwave” (you can get it from  HYPERLINK "http://www.python.org" www.python.org) and enter pkg get python in the prompt box. 

For OpenBSD and FreeBSD

For users of OpenBSD – you can go to the  HYPERLINK "ftp://ftp.openbsd.org" ftp.openbsd.org website, click on “Packages”, and choose Python from the menu. That will give you the Python version 2.5.1.

For users of FreeBSD – get the “blastwave” file from Python’s official site and then enter “pkg add i python in the prompt box.

Windows

The Windows Operating System, unlike Unix, does not preinstall Python versions. Because of this, the development of Python compiled installers for Windows. They have released a corresponding Windows format for every Python version available.

Since Python is still being developed, some platforms that were previously supported are no longer compatible with the language.

The actual installation process for Windows is fairly easy. You just have to visit the  HYPERLINK "http://www.python.org" www.python.org website and click on the link that says “Installing on Windows.” Download the installer appropriate for your version of Windows and open it. Just follow the installation wizard to finish the procedure.

If you need to get step by step instructions, just visit the Help page of the Python website.

Macintosh

The installation procedures for Macintosh computers are similar to the ones discussed for Unix platforms. However, there are some added features (e.g. the Package Manager and IDE) that you should be aware of.

Python 2.7 is already installed on Apple computers with Mac OS X 10.8. You have the option to get the latest version of Python from its official site.

Here are some of the things that you will get after installing the latest version:

An excellent programming framework that includes executable and library files of Python. The installer automatically creates a specific location to your file path. If you want to remove Python from your Mac computer, simply remove the files in the folder named Python.framework.

A folder named MacPython 3.3 will be created in your Applications folder. If you will open this location, you will see the IDLE, the programming system that is regularly included in Python releases.

You will also see a file named “Python Launcher”, which manages the Python codes and scripts taken from the Finder.

Lastly, you will find a useful tool called “Build Applet”, which lets you collect Python scripts and convert them into independent apps in your network.

Do not change or remove the pre-installed Python files on your Macintosh device. This is because they are managed by Apple and are utilized by some software created by Apple or third party companies.

That means if you decide to get a recent build of Python from their official website, you will have two working versions of Python on your Mac.

Some tips about IDLE

The IDLE file has a help option that lets you access the documentations for Python. If you are not yet familiar with the Python programming language, it is best if you will start your education by perusing the tutorials included in that file.

If you are an experienced Python user on Unix systems or platforms, you need to read the part focused on activating the Python codes and scripts from a Unix shell.