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

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.
主站蜘蛛池模板: 安平县| 和林格尔县| 镇康县| 广西| 茶陵县| 龙州县| 上栗县| 六枝特区| 福州市| 师宗县| 盖州市| 南陵县| 德庆县| 庆城县| 怀柔区| 乌鲁木齐县| 新野县| 渭南市| 阿瓦提县| 讷河市| 赤水市| 景泰县| 焉耆| 抚远县| 大石桥市| 临猗县| 常山县| 莲花县| 正蓝旗| 手机| 乌鲁木齐县| 深水埗区| 措勤县| 五河县| 岚皋县| 伽师县| 金沙县| 大宁县| 莒南县| 平罗县| 偃师市|