Download Python for Mac Os X 10.8 Updated

Download Python for Mac Os X 10.8

Installing Python three on Mac OS X

https://d33wubrfki0l68.cloudfront.net/02962eb19c0069740d16e67b5ba7c613238c8b9a/30ed2/_images/34435689480_2e6f358510_k_d.jpg

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

You practice non demand to install or configure anything else to use Python 2. These instructions certificate the installation of Python 3.

The version of Python that ships with Os X is great for learning, just it's non good for development. The version shipped with OS Ten may be out of date from the official current Python release, which is considered the stable production version.

Doing it Right

Let'south install a real version of Python.

Before installing Python, you lot'll demand to install GCC. GCC can be obtained past downloading Xcode, the smaller Command Line Tools (must take an Apple account) or the even smaller OSX-GCC-Installer package.

Annotation

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

Annotation

If you perform a fresh install of Xcode, you will also need to add together the commandline tools past running xcode-select --install on the final.

While Bone X comes with a large number of Unix utilities, those familiar with Linux systems will notice one key component missing: a package managing director. Homebrew fills this void.

To install Homebrew, open Final or your favorite Os 10 concluding emulator and run

                            $              /bin/bash -c              "              $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/main/install.sh)              "            

The script volition explicate what changes it will make and prompt you lot before the installation begins. One time you lot've installed Homebrew, insert the Homebrew directory at the superlative of your PATH environment variable. You can practise this by adding the following line at the bottom of your ~/.profile file

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

If you have Bone X 10.12 (Sierra) or older employ this line instead

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

Now, we can install Python iii:

This volition take a minute or 2.

Pip

Homebrew installs pip pointing to the Homebrew'd Python three for you.

Working with Python 3

At this point, you take the system Python 2.7 available, potentially the Homebrew version of Python 2 installed, and the Homebrew version of Python 3 as well.

will launch the Homebrew-installed Python 3 interpreter.

will launch the Homebrew-installed Python ii interpreter (if any).

will launch the Homebrew-installed Python three interpreter.

If the Homebrew version of Python 2 is installed then pip2 will bespeak to Python ii. If the Homebrew version of Python 3 is installed then pip will betoken to Python 3.

The rest of the guide will assume that python references Python iii.

                            #              Practise I have a Python              3              installed?              $              python --version              Python iii.7.one # Success!            

Pipenv & Virtual Environments

The next stride is to install Pipenv, so you lot tin install dependencies and manage virtual environments.

A Virtual Environment is a tool to go along the dependencies required by unlike projects in split places, by creating virtual Python environments for them. Information technology solves the "Project X depends on version 1.x just, Projection Y needs 4.x" dilemma, and keeps your global site-packages directory clean and manageable.

For instance, yous tin work on a project which requires Django 1.10 while also maintaining a project which requires Django one.8.

And then, onward! To the Pipenv & Virtual Environments docs!


This folio is a remixed version of some other guide, which is available under the same license.

Download Python for Mac Os X 10.8

Posted by: snyderilare1947.blogspot.com

0 Komentar

Post a Comment




banner