Download Python Mac 2.7.6 Updated
Download Python Mac 2.7.6
Installing Python two on Mac OS X¶
Mac OS 10 comes with Python 2.7 out of the box.
You practice not demand to install or configure anything else to utilise Python. Having said that, I would strongly recommend that you install the tools and libraries described in the next department earlier yous get-go building Python applications for real-world employ. In detail, yous should e'er install Setuptools, as it makes it much easier for you to install and manage other third-party Python libraries.
The version of Python that ships with Bone X is cracking for learning, but it's not adept for development. The version shipped with Bone X may be out of date from the official electric current Python release, which is considered the stable production version.
Doing it Correct¶
Permit'southward install a existent version of Python.
Before installing Python, you'll demand to install a C compiler. The fastest manner is to install the Xcode Command Line Tools by running xcode-select --install . You can besides download the full version of Xcode from the Mac App Store, or the minimal but unofficial OSX-GCC-Installer package.
Note
If yous already accept Xcode installed, practise not install OSX-GCC-Installer. In combination, the software tin cause issues that are hard to diagnose.
Notation
If yous perform a fresh install of Xcode, you volition also need to add the commandline tools by running xcode-select --install on the terminal.
While Bone X comes with a big number of Unix utilities, those familiar with Linux systems will discover 1 key component missing: a decent package manager. Homebrew fills this void.
To install Homebrew, open Terminal or your favorite Bone X last emulator and run
$ /usr/bin/ruby -e " $(coil -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) " The script will explain what changes it volition brand and prompt you before the installation begins. Once y'all've installed Homebrew, insert the Homebrew directory at the acme of your PATH environs variable. You can do this by adding the following line at the lesser of your ~/.profile file
consign PATH="/usr/local/bin:/usr/local/sbin:$PATH" At present, we can install Python 2.7:
Because python@2 is a "keg", we demand to update our PATH once again, to betoken at our new installation:
export PATH="/usr/local/opt/python@2/libexec/bin:$PATH" Homebrew names the executable python2 so that you lot tin all the same run the arrangement Python via the executable python .
$ python -V # Homebrew installed Python 3 interpreter (if installed) $ python2 -5 # Homebrew installed Python 2 interpreter $ python3 -V # Homebrew installed Python three interpreter (if installed) Virtual Environments¶
A Virtual Environment (unremarkably referred to as a 'virtualenv') is a tool to keep the dependencies required by different projects in separate places, by creating virtual Python environments for them. It solves the "Project 10 depends on version 1.x just, Projection Y needs 4.x" dilemma, and keeps your global site-packages directory clean and manageable.
For instance, y'all tin work on a project which requires Django 1.10 while likewise maintaining a project which requires Django 1.8.
To start using this and run across more information: Virtual Environments docs.
This page is a remixed version of another guide, which is available under the same license.
Download Python Mac 2.7.6
Posted by: garzahassaid.blogspot.com
Post a Comment for "Download Python Mac 2.7.6 Updated"