其他分享
首页 > 其他分享> > TensorFlow2.0安装

TensorFlow2.0安装

作者:互联网

TensorFlow2.0安装
1.创建独立环境并激活

conda create --name tensorflow 2.0 python==3.7
activate tensorflow2.0

2.安装相关软件包

pip install numpy matplotlib Pillow scikit-learn pandas -i https://pypi.tuna.tsinghua.edu.cn/simple

3.安装TensorFlow2.0

pip install tensorflow==2.0.0-beta -i https://pypi.tuna.tsinghua.edu.cn/simple

4.测试TensorFlow2.0
在命令行中输入python,打开python交互模式
输入代码:import tensorflow as tf
(numpy可能会提示版本

pip install numpy==1.16.5 -i https://pypi.tuna.tsinghua.edu.cn/simple

标签:cn,simple,TensorFlow2.0,https,edu,pip,安装
来源: https://blog.csdn.net/baidu_41272654/article/details/116068745