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

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.
主站蜘蛛池模板: 霍山县| 卓尼县| 乌鲁木齐县| 惠安县| 长宁县| 芦溪县| 锦屏县| 花莲市| 昌邑市| 喜德县| 图木舒克市| 日土县| 武义县| 牡丹江市| 慈利县| 丰顺县| 中江县| 阳西县| 绵竹市| 北宁市| 龙江县| 黔西| 承德市| 黎城县| 托里县| 永川市| 华蓥市| 抚远县| 应城市| 株洲市| 米泉市| 吉木萨尔县| 宁化县| 保定市| 惠水县| 龙岩市| 天峨县| 鹤岗市| 获嘉县| 华坪县| 陈巴尔虎旗|