安装python3

背景

安装TensorFlow

安装python3

1
brew install python3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Pip, setuptools, and wheel have been installed. To update them
pip3 install --upgrade pip setuptools wheel

You can install Python packages with
pip3 install <package>

They will install into the site-package directory
/usr/local/lib/python3.6/site-packages

See: https://docs.brew.sh/Homebrew-and-Python.html
==> Summary
🍺 /usr/local/Cellar/python3/3.6.3: 7,973 files, 111.1MB, built in 19 minutes 38 seconds
➜ tensorflow python3 --version
Python 3.6.3