Note: A bugfix release, 2.7.16, is currently available. Its use is recommended.
Python 2.7.0 was released on July 3rd, 2010.
Download Mac OS X 32-bit i386/PPC installer; Python 2.7.0 - July 3, 2010. Download Mac OS X 32-bit i386/PPC installer; Python 3.1.2 - March 20, 2010. Download Mac OS X installer; Python 2.6.5 - March 18, 2010. Download Mac OS X installer; Python 2.5.5 - Jan. No files for this release. Python 2.6.4 - Oct. Download Mac OS X. Mac OS X comes with Python 2.7 out of the box. We can install Python 2.7. Setuptools enables you to download and install any compliant Python software over a. Python 2.7.11 - Dec. Download Mac OS X 32-bit i386/PPC installer; Download Mac OS X 64-bit/32-bit installer; Python 3.5.0 - Sept. Download Mac OS X 32-bit i386/PPC installer; Download Mac OS X 64-bit/32-bit installer; Python 2.7.10 - May 23, 2015. Download Mac OS X 32-bit i386/PPC installer; Download Mac OS X 64-bit/32-bit. I want to install pip for python 2.7 on my Mac. I think this is the python located in /usr/bin/python. Unfortunately I have already installed Anaconda, which installs python 3.6.3, and changes things so that the command python xxx.py automatically runs xxx.py using python 3.6.3.
Python 2.7 is scheduled to be the last major version in the 2.x series before itmoves into an extended maintenance period. This release contains many of thefeatures that were first released in Python 3.1. Improvements in this releaseinclude:
- An ordered dictionary type
- New unittest features including test skipping, new assert methods, and testdiscovery
- A much faster io module
- Automatic numbering of fields in the str.format() method
- Float repr improvements backported from 3.x
- Tile support for Tkinter
- A backport of the memoryview object from 3.x
- Set literals
- Set and dictionary comprehensions
- Dictionary views
- New syntax for nested with statements
- The sysconfig module
See these resources for further information:
- Change log for this release.
- Report bugs at http://bugs.python.org.
- Help fund Python and its community.
This is a production release. Please report any bugs you encounter.
We currently support these formats for download:
- Mac Installer disk image (2.7.0) for OS X 10.5 and later(sig). It contains code for PPC, i386, and x86-64.
- 32-bit Mac Installer disk image (2.7.0) for OS X 10.3 and later(sig).
The source tarballs are signed with Benjamin Peterson's key (fingerprint: 12EF3DC3 8047 DA38 2D18 A5B9 99CD EA9D A413 5B38). The Windows installer was signedby Martin von Löwis' public key, which has a key id of 7D9DC8D2. The Macinstallers were signed with Ronald Oussoren's key, which has a key id ofE6DF025C. The public keys are located on the download page.
MD5 checksums and sizes of the released files:
[1] | The binaries for AMD64 will also work on processors that implement the Intel 64 architecture (formerly EM64T), i.e. the architecture that Microsoft calls x64, and AMD called x86-64 before calling it AMD64. They will not work on Intel Itanium Processors (formerly IA-64). |
Note
Check out our guide for installing Python 3 on OS X.
Mac OS X comes with Python 2.7 out of the box.
![2.7 2.7](https://secureservercdn.net/160.153.137.40/fnd.622.myftpupload.com/wp-content/uploads/2019/06/4.png)
You do not need to install or configure anything else to use Python. Having saidthat, I would strongly recommend that you install the tools and librariesdescribed in the next section before you start building Python applications forreal-world use. In particular, you should always install Setuptools, as it makesit much easier for you to install and manage other third-party Python libraries.
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 a C compiler. The fastest wayis to install the Xcode Command Line Tools by running
xcode-select--install
. You can also download the full version ofXcode from the Mac App Store, or theminimal but unofficialOSX-GCC-Installerpackage.Note
Spyder Python 2.7 Download For Mac
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.![Download Python 2.7 For Mac Download Python 2.7 For Mac](/uploads/1/2/9/2/129271657/915944195.png)
While OS X comes with a large number of Unix utilities, those familiar withLinux systems will notice one key component missing: a decent package manager.Homebrew fills this void.
To install Homebrew, open
Terminal
oryour favorite OS X terminal emulator and runThe 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
fileNow, we can install Python 2.7:
Because
python@2
is a “keg”, we need to update our PATH
again, to point at our new installation:Homebrew names the executable
python2
so that you can still run the system Python via the executable python
.Setuptools & Pip¶
Homebrew installs Setuptools and
pip
for you.Uninstall Python 2.7 Mac
Setuptools enables you to download and install any compliant Pythonsoftware over a network (usually the Internet) with a single command(
easy_install
). It also enables you to add this network installationcapability to your own Python software with very little work.pip
is a tool for easily installing and managing Python packages,that is recommended over easy_install
. It is superior to easy_install
in several ways,and is actively maintained.Virtual Environments¶
A Virtual Environment (commonly referred to as a ‘virtualenv’) 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.
For example, you can work on a project which requires Django 1.10 while alsomaintaining a project which requires Django 1.8.
Download Python Mac
To start using this and see more information: Virtual Environments docs.
Python On Mac
This page is a remixed version of another guide,which is available under the same license.