Python 2.7 Download Mac
Note
Mac OS X 10.8 comes with Python 2.7 pre-installed by Apple. If you wish, you are invited to install the most recent version of Python from the Python website ( ). A current “universal binary” build of Python, which runs natively on the Mac’s new Intel and legacy PPC CPU’s, is available there. Python 2.7 mac free download. Python-telegram-bot python-telegram-bot is a library that provides a pure Python interface for the Telegram Bot API. Mac; Android APK; Linux; News & reviews. DOWNLOAD Python 3.9.0 / 3.10.0 Alpha 1 / 2.7.18 for Windows. Python 3.9.0 / 3.10.0 Alpha 1 / 2.7.18 add to watchlist. Browse other questions tagged python macos python-2.7 or ask your own question. The Overflow Blog Play the long game when learning to code.
Check out our guide for installing Python 3 on OS X.
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. 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 runningxcode-select--install
. You can also download the full version ofXcode from the Mac App Store, or theminimal but unofficialOSX-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 decent package manager.Homebrew fills this void.
To install Homebrew, open Terminal
oryour favorite OS X terminal emulator and run
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
Now, 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.
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.
To start using this and see more information: Virtual Environments docs.
This page is a remixed version of another guide,which is available under the same license.
Note: A bugfix release, 2.7.16, is currently available. Its use is recommended.
Python 2.7.0 was released on July 3rd, 2010.
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:
Spyder Python 2.7 Download For Mac
- Change log for this release.
- Report bugs at http://bugs.python.org.
- Help fund Python and its community.
Python 2.7 Download Mac
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). |