- Hands-On Big Data Modeling
- James Lee Tao Wei Suresh Kumar Mukhiya
- 278字
- 2021-06-10 18:58:55
Python on macOS
macOS X, High Sierra has a preloaded version of Python 2.7 out-of-the-box. If you have macOS X, you will not have to install or configure anything else in order to use Python 2. If you want to use Python3, then follow these instructions.
Before you install Python, you’ll be required to install GCC:
- GCC can be obtained by downloading XCode (https://developer.apple.com/xcode/).
- The smaller command-line tools, or the even smaller OSX-GCC-Installer package, can be downloaded.
While macOS X comes with a large number of UNIX utilities, those familiar with Linux systems will notice one key component missing: a package manager. Homebrew fills this void. To install Homebrew, open a Terminal and run the following command:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Once Homebrew is installed, insert the Homebrew directory at the top of your PATH environment variable. You can do this by adding the following line to the bottom of your ~/.profile file. It is important to note that various shells have their own bash profile files. Make sure that you choose the correct one:
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
Now, we can install Python 3, as follows:
$ brew install python
$ python3
We will also launch the Homebrew-installed Python 3 interpreter. To check the Python version, we can run the following commands:
$ python --version Python 3.6.4 # Success!
- 虛擬儀器設(shè)計(jì)測(cè)控應(yīng)用典型實(shí)例
- 3D Printing with RepRap Cookbook
- 蕩胸生層云:C語(yǔ)言開發(fā)修行實(shí)錄
- Dreamweaver 8中文版商業(yè)案例精粹
- Python Data Science Essentials
- 工業(yè)機(jī)器人入門實(shí)用教程(KUKA機(jī)器人)
- 完全掌握AutoCAD 2008中文版:綜合篇
- 21天學(xué)通Java Web開發(fā)
- Enterprise PowerShell Scripting Bootcamp
- Ruby on Rails敏捷開發(fā)最佳實(shí)踐
- 從零開始學(xué)C++
- 電腦上網(wǎng)輕松入門
- Web編程基礎(chǔ)
- 數(shù)據(jù)要素:全球經(jīng)濟(jì)社會(huì)發(fā)展的新動(dòng)力
- Machine Learning with Spark(Second Edition)