一、安装Anaconda
登录https://www.anaconda.com/download/#macos,下载Anaconda3-5.3.1-MacOSX-x86_64.pkg
二、安装Pycharm
登录https://www.jetbrains.com/pycharm/download/#section=mac,下载pycharm-community-2018.3.dmg
三、安装TensorFlow
1、打开mac的终端,用conda命令创建TensorFlow环境并激活
conda create -n tensorflow pip python 3.7
source activate tensorflow
2、下载tensorflow
pip3 --default-timeout=10000 install --upgrade https://mirrors.tuna.tsinghua.edu.cn/tensorflow/mac/cpu/tensorflow-1.3.0-py3-none-any.whl
四、安装Keras