1.下载anaconda
2.切换国内镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --set show_channel_urls yes
在用户目录下有.condarc文件(我的用户目录是C:\Users\lenovo
)删除–defaults后
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
show_channel_urls: true
安装TensorFlow
conda install tensorflow
测试tensorflow
启动jupyter Notebook
进入新打开页面输入
import tensorflow as tf
tf.__version__
使用 ctrl+Enter
运行显示tensorflow版本。
来源:CSDN
作者:xingxing12323
链接:https://blog.csdn.net/xingxing12323/article/details/103735927