安装tensorflow

1打开anaconda
这里的3name我填写的是tf
image
2.先打开prompt
查看已经有的环境

conda env list

image
3.进入创建的tf
image
进入tf环境后进行安装使用命令

pip install tensorflow

4.测试安装的tensorflow是否成功

python
import tensorflow as tf
//查看版本
tf.__version__ //注意是俩个下划线
//查看安装位置
tf.__path__

image
安装圆满完成!!

posted @ 2022-12-04 12:08  辛宣  阅读(32)  评论(0)    收藏  举报