Learn the powerful enterprise adaptable database:
Getting Started With ADABAS & Natural
Tuesday, October 2, 2018
How To Install Python On Mac
1) The latest version of Mac OS X, High Sierra, comes with Python 2.7 out of the box.
2) You do not need to install or configure anything else to use Python 2. These instructions document the installation of Python 3.
3) The version of Python that ships with OS X is great for learning, but it’s not good for development. The version shipped with OS X may be out of date from the official current Python release, which is considered the stable production version.
4) Before installing Python, you’ll need to install GCC. GCC can be obtained by downloading XCode, the smaller Command Line Tools (must have an Apple account) or the even smaller OSX-GCC-Installer package.
Note:
If you already have XCode installed, do not install OSX-GCC-Installer. In combination, the software can cause issues that are difficult to diagnose.
Note:
If you perform a fresh install of XCode, you will also need to add the commandline tools by running xcode-select --install on the terminal.
5) Install Homebrew,
5.1) open Terminal or your favorite OSX terminal emulator and run.
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
5.2) Once you’ve installed Homebrew, insert the Homebrew directory at the top of your PATH environment variable. You can do this by adding the following line at the bottom of your ~/.profile file
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
6) install Python 3
$ brew install python
Note:
Since Mac is pre-bundled with Python 2, your new python and its pip executable may require number 3 after their names
ie
python3
pip3
REFERENCE:
https://docs.python-guide.org/starting/install3/osx/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment