使用anaconda3安装tensorflow2.0
1.下载anaconda
2.安装anaconda
https://zhuanlan.zhihu.com/p/75717350
3.安装tensorflow环境
- 关闭 anaconda和pycharm,打开anaconda prompt新建一个python3.5的环境
conda create --name tensorflow python=3.5
- 激活进入这个python3.5的环境
activate tensorflow
- 升级pip
pip install --upgrade pip -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com --user
- 安装tensorflow
pip install tensorflow==2.0.0-alpha0 -i https://pypi.douban.com/simple
4.其他
- jupyter notebook不能运行代码,一直处于In[*]状态
解决办法:重新安装notebook
activate tensorflowpip install --ignore-installed notebook -i https://pypi.douban.com/simple
- jupyter notebook 选择环境
conda install nb_conda
效果如下:

- 安装jupyter插件
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple flaskpip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple flaskjupyter contrib nbextension install --userpip install jupyter_nbextensions_configuratorjupyter nbextensions_configurator enable --user
