官术网_书友最值得收藏!

Installation on Mac OS

For Mac OS, you will get the installer from the site https://www.python.org/downloads/mac-osx/

For the new Mac OS X, Sierra comes loaded with Python 2.7 and it's good for learning but the same cannot be used to develop advanced-level programs. You do not need to separately install Python on the new Mac OS X. However, a word of caution is that the version of Python packed with the Mac OS could be out of date and might require updating. If you still want to install a separate version, you can follow the simple steps mentioned as follows:

  1. First of all, you might require to install Xcode, Xcode is the IDE for  platform and can be downloaded from the Apple appstore.
  2. Once Xcode is installed, you need to install the command-line tools, which can be installed by running the xcode-select --install command on the terminal found under /Applications/Utilities/, as shown in the following screenshot:
  1.  A pop-up window appears with three different options as shown here:
  1. Once you click on Install and agree to their terms and conditions, the command-line tools will start to download and will be installed in few minutes depending on the Internet connection.
  1. The next step in the process would be to install Homebrew, which is a package manager for Mac OS and handles the Python package. In order to install Homebrew, simply provide the following inputs to the terminal:

      /usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. To install the latest python2 version, simply type brew install python on the terminal:
      $ brew install python
In order to install python3, you need to use brew install python3.
主站蜘蛛池模板: 宁武县| 茂名市| 邢台县| 沧源| 平乐县| 松阳县| 内江市| 襄垣县| 弋阳县| 晴隆县| 时尚| 正蓝旗| 开封县| 沂源县| 镇平县| 兴义市| 云安县| 东城区| 江都市| 临沂市| 仁怀市| 涞水县| 达拉特旗| 白山市| 大洼县| 白沙| 铜梁县| 双流县| 延津县| 龙海市| 内丘县| 白朗县| 乡宁县| 海晏县| 上思县| 东阳市| 泾源县| 云安县| 原平市| 城口县| 上栗县|