Which essentially means an interface for Python to access the native Windows API. Obviously this means to use it on Windows exclusively (I tried, doesn't event work under cygwin, so don't even think about Mac). For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms. Download the latest Python 3 and Python 2 source.
Active Python Releases
For more information visit the Python Developer's Guide.
Looking for a specific release?
Python releases by version number:
- Python 2.7.8July 2, 2014 DownloadRelease Notes
- Python 2.7.7June 1, 2014 DownloadRelease Notes
- Python 3.4.1May 19, 2014 DownloadRelease Notes
- Python 3.4.0March 17, 2014 DownloadRelease Notes
- Python 3.3.5March 9, 2014 DownloadRelease Notes
- Python 3.3.4Feb. 9, 2014 DownloadRelease Notes
- Python 3.3.3Nov. 17, 2013 DownloadRelease Notes
- Python 2.7.6Nov. 10, 2013 DownloadRelease Notes
- Python 2.6.9Oct. 29, 2013 DownloadRelease Notes
- Python 3.3.2May 15, 2013 DownloadRelease Notes
- Python 3.2.5May 15, 2013 DownloadRelease Notes
- Python 2.7.5May 12, 2013 DownloadRelease Notes
- Python 3.3.1April 6, 2013 DownloadRelease Notes
- Python 3.2.4April 6, 2013 DownloadRelease Notes
- Python 2.7.4April 6, 2013 DownloadRelease Notes
- Python 3.3.0Sept. 29, 2012 DownloadRelease Notes
- Python 3.2.3April 10, 2012 DownloadRelease Notes
- Python 2.6.8April 10, 2012 DownloadRelease Notes
- Python 3.1.5April 9, 2012 DownloadRelease Notes
- Python 2.7.3April 9, 2012 DownloadRelease Notes
- Python 3.2.2Sept. 3, 2011 DownloadRelease Notes
- Python 3.2.1July 9, 2011 DownloadRelease Notes
- Python 2.7.2June 11, 2011 DownloadRelease Notes
- Python 3.1.4June 11, 2011 DownloadRelease Notes
- Python 2.6.7June 3, 2011 DownloadRelease Notes
- Python 2.5.6May 26, 2011 DownloadRelease Notes
- Python 3.2.0Feb. 20, 2011 DownloadRelease Notes
- Python 2.7.1Nov. 27, 2010 DownloadRelease Notes
- Python 3.1.3Nov. 27, 2010 DownloadRelease Notes
- Python 2.6.6Aug. 24, 2010 DownloadRelease Notes
- Python 2.7.0July 3, 2010 DownloadRelease Notes
- Python 3.1.2March 20, 2010 DownloadRelease Notes
- Python 2.6.5March 18, 2010 DownloadRelease Notes
- Python 2.5.5Jan. 31, 2010 DownloadRelease Notes
- Python 2.6.4Oct. 26, 2009 DownloadRelease Notes
- Python 2.6.3Oct. 2, 2009 DownloadRelease Notes
- Python 3.1.1Aug. 17, 2009 DownloadRelease Notes
- Python 3.1.0June 26, 2009 DownloadRelease Notes
- Python 2.6.2April 14, 2009 DownloadRelease Notes
- Python 3.0.1Feb. 13, 2009 DownloadRelease Notes
- Python 2.5.4Dec. 23, 2008 DownloadRelease Notes
- Python 2.4.6Dec. 19, 2008 DownloadRelease Notes
- Python 2.5.3Dec. 19, 2008 DownloadRelease Notes
- Python 2.6.1Dec. 4, 2008 DownloadRelease Notes
- Python 3.0.0Dec. 3, 2008 DownloadRelease Notes
- Python 2.6.0Oct. 2, 2008 DownloadRelease Notes
- Python 2.3.7March 11, 2008 DownloadRelease Notes
- Python 2.4.5March 11, 2008 DownloadRelease Notes
- Python 2.5.2Feb. 21, 2008 DownloadRelease Notes
- Python 2.5.1April 19, 2007 DownloadRelease Notes
- Python 2.3.6Nov. 1, 2006 DownloadRelease Notes
- Python 2.4.4Oct. 18, 2006 DownloadRelease Notes
- Python 2.5.0Sept. 19, 2006 DownloadRelease Notes
- Python 2.4.3April 15, 2006 DownloadRelease Notes
- Python 2.4.2Sept. 27, 2005 DownloadRelease Notes
- Python 2.4.1March 30, 2005 DownloadRelease Notes
- Python 2.3.5Feb. 8, 2005 DownloadRelease Notes
- Python 2.4.0Nov. 30, 2004 DownloadRelease Notes
- Python 2.3.4May 27, 2004 DownloadRelease Notes
- Python 2.3.3Dec. 19, 2003 DownloadRelease Notes
- Python 2.3.2Oct. 3, 2003 DownloadRelease Notes
- Python 2.3.1Sept. 23, 2003 DownloadRelease Notes
- Python 2.3.0July 29, 2003 DownloadRelease Notes
- Python 2.2.3May 30, 2003 DownloadRelease Notes
- Python 2.2.2Oct. 14, 2002 DownloadRelease Notes
- Python 2.2.1April 10, 2002 DownloadRelease Notes
- Python 2.1.3April 9, 2002 DownloadRelease Notes
- Python 2.2.0Dec. 21, 2001 DownloadRelease Notes
- Python 2.0.1June 22, 2001 DownloadRelease Notes
Python For Mac
View older releases
Licenses
All Python releases are Open Source. Historically, most, but not all, Python releases have also been GPL-compatible. The Licenses page details GPL-compatibility and Terms and Conditions.
Sources
For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms.
Download the latest Python 3 and Python 2 source.
Alternative Implementations
This site hosts the 'traditional' implementation of Python (nicknamed CPython). A number of alternative implementations are available as well.
History
Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum in the Netherlands as a successor of a language called ABC. Guido remains Python’s principal author, although it includes many contributions from others.
Looking for the release schedule? Check the Google Calendar.
Mac OS X comes with Python 2.7 out of the box.
You do not need to install or configure anything else to use Python 2. Theseinstructions document the installation of Python 3.
The version of Python that ships with OS X is great for learning, but it’s notgood for development. The version shipped with OS X may be out of date from theofficial current Python release,which is considered the stable production version.
Doing it Right¶
Let’s install a real version of Python.
Before installing Python, you’ll need to install GCC. GCC can be obtainedby downloading Xcode, the smallerCommand Line Tools (must have anApple account) or the even smaller OSX-GCC-Installerpackage.
Note
If you already have Xcode installed, do not install OSX-GCC-Installer.In combination, the software can cause issues that are difficult todiagnose.
Note
If you perform a fresh install of Xcode, you will also need to add thecommandline tools by running xcode-select--install
on the terminal.
While OS X comes with a large number of Unix utilities, those familiar withLinux systems will notice one key component missing: a package manager.Homebrew fills this void.
To install Homebrew, open Terminal
oryour favorite OS X terminal emulator and run
Python For Mac Os
The script will explain what changes it will make and prompt you before theinstallation begins.Once you’ve installed Homebrew, insert the Homebrew directory at the topof your PATH
environment variable. You can do this by adding the followingline at the bottom of your ~/.profile
file
If you have OS X 10.12 (Sierra) or older use this line instead
Now, we can install Python 3:
This will take a minute or two.
Pip¶
Homebrew installs pip
pointing to the Homebrew’d Python 3 for you.
Download Anaconda Python For Mac
Working with Python 3¶
At this point, you have the system Python 2.7 available, potentially theHomebrew version of Python 2 installed, and the Homebrewversion of Python 3 as well.
will launch the Homebrew-installed Python 3 interpreter.
will launch the Homebrew-installed Python 2 interpreter (if any).
will launch the Homebrew-installed Python 3 interpreter.
If the Homebrew version of Python 2 is installed then pip2
will point to Python 2.If the Homebrew version of Python 3 is installed then pip
will point to Python 3.
The rest of the guide will assume that python
references Python 3.
Pipenv & Virtual Environments¶
The next step is to install Pipenv, so you can install dependencies and manage virtual environments.
A Virtual Environment is a tool to keep the dependencies required by different projectsin separate places, by creating virtual Python environments for them. It solves the“Project X depends on version 1.x but, Project Y needs 4.x” dilemma, and keepsyour global site-packages directory clean and manageable.
Python For Mac Tutorial
For example, you can work on a project which requires Django 1.10 while alsomaintaining a project which requires Django 1.8.
So, onward! To the Pipenv & Virtual Environments docs!
This page is a remixed version of another guide,which is available under the same license.