【Conda】【TensorFlow】創建環境,安裝TensorFlow 2.0

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/

             

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章