1.下載下傳anaconda
先下載下傳最新版anaconda
2.安裝anaconda
https://zhuanlan.zhihu.com/p/75717350
3.安裝tensorflow環境
- 關閉 anaconda和pycharm,打開anaconda prompt建立一個python3.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 tensorflow
-
pip install --ignore-installed notebook -i https://pypi.douban.com/simple
- jupyter notebook 選擇環境
-
效果如下:conda install nb_conda
使用anaconda3安裝tensorflow2.0
- 安裝jupyter插件
-
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple flask
-
pip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple flask
-
jupyter contrib nbextension install --user
-
pip install jupyter_nbextensions_configurator
-
jupyter nbextensions_configurator enable --user
使用anaconda3安裝tensorflow2.0