- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 276字
- 2021-07-09 20:40:19
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:
- First of all, you might require to install Xcode, Xcode is the IDE for platform and can be downloaded from the Apple appstore.
- 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:

- A pop-up window appears with three different options as shown here:

- 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.
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)"
- To install the latest python2 version, simply type brew install python on the terminal:
$ brew install python
- DevOps:軟件架構師行動指南
- 軟件安全技術
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- Spring Cloud Alibaba核心技術與實戰案例
- Designing Hyper-V Solutions
- Java程序設計
- Swift Playgrounds少兒趣編程
- Mastering Android Game Development
- Statistical Application Development with R and Python(Second Edition)
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- OpenCV 3.0 Computer Vision with Java
- INSTANT LESS CSS Preprocessor How-to
- WCF全面解析
- 新手學ASP.NET 3.5網絡開發
- Java EE互聯網輕量級框架整合開發:SSM+Redis+Spring微服務(上下冊)