1 conda create -n TF_2C python=3.6
2 activate TF_2C
3 pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
4 測試
輸出TensorFlow版本:print(tf.__version__)
5 安裝其他
(1)安裝matplotlib
python -m pip install -U pip setuptools
python -m pip install matplotlib
如果不成功,可以用以下方法:
下載地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
將紅框中的文件下載到本地,例如路徑爲:D:\software\matplotlib-3.2.1-cp36-cp36m-win_amd64.whl 直接PIP即可。
pip install D:\software\matplotlib-3.2.1-cp36-cp36m-win_amd64.whl
(2)python庫
地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/