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

macOS

macOS comes with Python 2.7 installed. To ensure compatibility with the example code in this book, Python 3.4 or above is required, which is available for download from https://www.python.org/downloads/mac-osx/. You will be prompted by a graphical installation wizard when you run the downloaded installation package:

After completing the graphical installation steps, Python 3 can be accessed via these steps:

  1. Open the Finder app.
  2. Navigate to the Applications folder, and then go into the Utilities folder.
  3. Open the Terminal app.
  4. You will be prompted by the following message when you type python3 in the terminal:
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36 [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on Darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Some Python packages require requires Xcode Command Line Tools to compile properly. Xcode can be obtained from Mac App Store. To install the command line tools, enter the following command in Terminal: xcode-select --install and follow the installation prompts.
主站蜘蛛池模板: 景宁| 阜新市| 绥棱县| 商水县| 阆中市| 读书| 徐汇区| 济宁市| 道孚县| 佛坪县| 崇礼县| 灵石县| 嘉峪关市| 阳曲县| 尼玛县| 威远县| 额尔古纳市| 绥江县| 阳新县| 普陀区| 阿克| 双流县| 永定县| 治多县| 吉首市| 永春县| 哈巴河县| 文昌市| 响水县| 饶平县| 景东| 竹溪县| 宝兴县| 玉树县| 淮南市| 资源县| 云龙县| 游戏| 探索| 呼伦贝尔市| 荃湾区|