1.安装python3.x
brew install python3
2.安装anaconda
brew cask install anaconda
3.配置环境变量
echo 'export PATH=/usr/local/anaconda3/bin:$PATH' >> ~/.bash_profile
alias python="/usr/local/anaconda3/bin/python3.7"
source ~/.bash_profile
4.安装tensorflow
pip3 install tensorflow的方式及网上的其他一些方式亲测验证时否会报错“no module named tensorflow”
使用 conda install tensorflow 亲测可行
https://blog.youkuaiyun.com/springcoder/article/details/82504254
5.安装keras
conda install keras
6.IntelliJ IDEA 安装python插件 运行python
https://jingyan.baidu.com/article/a948d6512bd3db0a2dcd2e89.html
7.IDEA引入tensorflow
https://blog.youkuaiyun.com/learneraiqi/article/details/71104422