如何windows下安装Tensorflow2.0.0正式版?
1、首先安装numpy(安装过就算了)
推荐国内安装源!亲测成功!!!
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
2、使用清华源安装Tensorflow GPU版本
pip install -U tensorflow-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple
3、使用清华源安装Tensorflow CPU版本
pip install -U tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
4、测试是否安装成功!
在cmd命令行中输入ipython进入ipython交互式终端,然后输入
import tensorflow as tf
没有错误就证明成功了!
5、查看Tensorflow版本号
tf.__version__
一切都正常说明安装成功了,恭喜!
如果遇到上述安装成功,但是在import tensorflow as tf 出现下面的错误情况!
Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
说明你的tensorflow和cuda版本不一致,建议你安装对应版本的cuda或者降低tensorflow版本;再或者只是用CPU版本
欢迎一起交流学习!嘿嘿