- Hands-On Artificial Intelligence on Amazon Web Services
- Subhashini Tripuraneni Charles Song
- 162字
- 2021-06-24 12:48:43
Installing Python on macOS
While Python is pre-installed on macOS, that version of Python is 2.7. To install a newer version of Python, we recommend using a package manager for macOS called Homebrew. Homebrew is touted as the missing package manager for macOS; it simplifies the installation of many macOS software packages, including Python. To install Homebrew, follow the instructions on its website: https://brew.sh. At the time of writing, the command to install Homebrew in the Terminal is as follows:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Once Homebrew has been installed, we can install the latest Python and pip, the Python package management system, with the following commands in the Terminal prompt:
$ brew install python3
$ brew install pip3
Check whether the latest Python and pip version have been correctly linked on your system with the commands in the Terminal prompt:
$ python --version
$ pip --version
The outputs of these commands should state versions similar to 3.7+ and 18.0+, respectively.
- 電氣自動(dòng)化專業(yè)英語(第3版)
- PPT,要你好看
- LabVIEW虛擬儀器從入門到測(cè)控應(yīng)用130例
- 蕩胸生層云:C語言開發(fā)修行實(shí)錄
- Dreamweaver CS3網(wǎng)頁設(shè)計(jì)50例
- Visual FoxPro 6.0數(shù)據(jù)庫(kù)與程序設(shè)計(jì)
- 輕松學(xué)Java
- 大數(shù)據(jù)技術(shù)入門(第2版)
- 分布式多媒體計(jì)算機(jī)系統(tǒng)
- Python:Data Analytics and Visualization
- 貫通Java Web開發(fā)三劍客
- Visual C++項(xiàng)目開發(fā)案例精粹
- SMS 2003部署與操作深入指南
- Learning Linux Shell Scripting
- Mastering Ansible(Second Edition)