Download Python for Mac Os X 10.6 Updated

Download Python for Mac Os X 10.6

Installing Python 2 on Mac OS X

https://d33wubrfki0l68.cloudfront.net/9748b28c2d79f1ff9c0643ef0287be932af27dae/b601a/_images/34435688560_4cc2a7bcbb_k_d.jpg

Mac OS X comes with Python 2.7 out of the box.

You exercise not need to install or configure anything else to utilize Python. Having said that, I would strongly recommend that you install the tools and libraries described in the adjacent department earlier you start building Python applications for existent-earth use. In item, you lot should always install Setuptools, as it makes it much easier for you lot 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 non proficient for development. The version shipped with Os Ten may be out of appointment from the official electric current Python release, which is considered the stable production version.

Doing it Right

Let'south install a existent version of Python.

Before installing Python, you'll need to install a C compiler. The fastest mode is to install the Xcode Command Line Tools by running xcode-select --install . You can likewise download the total version of Xcode from the Mac App Shop, or the minimal but unofficial OSX-GCC-Installer bundle.

Note

If you already have Xcode installed, practise non install OSX-GCC-Installer. In combination, the software can cause issues that are difficult to diagnose.

Note

If you lot perform a fresh install of Xcode, y'all volition too need to add together the commandline tools past running xcode-select --install on the final.

While OS X comes with a big number of Unix utilities, those familiar with Linux systems volition notice one key component missing: a decent package manager. Homebrew fills this void.

To install Homebrew, open Final or your favorite OS X terminal emulator and run

                            $              /usr/bin/ruby -east              "              $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/principal/install)              "            

The script will explicate what changes it will make and prompt you lot earlier the installation begins. Once you've installed Homebrew, insert the Homebrew directory at the top of your PATH environs variable. You can practice this past adding the following line at the lesser of your ~/.profile file

                            export PATH="/usr/local/bin:/usr/local/sbin:$PATH"            

Now, nosotros tin can install Python 2.7:

Because python@2 is a "keg", we need to update our PATH once again, to point at our new installation:

                            consign PATH="/usr/local/opt/python@ii/libexec/bin:$PATH"            

Homebrew names the executable python2 then that you tin yet run the system Python via the executable python .

                            $              python -5              # Homebrew installed Python 3 interpreter (if installed)              $              python2 -5              # Homebrew installed Python two interpreter              $              python3 -V              # Homebrew installed Python 3 interpreter (if installed)            

Virtual Environments

A Virtual Environment (commonly referred to as a 'virtualenv') is a tool to keep the dependencies required past different projects in carve up places, by creating virtual Python environments for them. It solves the "Project X depends on version 1.10 merely, Projection Y needs 4.x" dilemma, and keeps your global site-packages directory clean and manageable.

For example, you can work on a project which requires Django 1.10 while also maintaining a projection which requires Django one.viii.

To start using this and see more data: Virtual Environments docs.


This page is a remixed version of another guide, which is available nether the aforementioned license.

Download Python for Mac Os X 10.6

Posted by: lindahibeated.blogspot.com

0 Komentar

Post a Comment




banner