【Conda】【TensorFlow】创建环境,安装TensorFlow 2.0

Malina ·
更新时间:2024-09-20
· 893 次阅读

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/

             


作者:Jackilina_Stone



环境 tensorflow conda

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章