低配置的电脑也可以装tensorflow2
1、下载Anaconda
上面三步的链接,也是不错的tf2的学习资料,朋友推荐的,还在学习中。
2、处理Bug
遇到的第一个问题:安装tensorflow2太慢了。那个稍等片刻,真的不是片刻,是很久很久。怎么解决呢?总不能直接卡在下载这一关吧!把pip install tensorflow换成pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple/,这样看进度条会爽很多。
遇到的第二个问题:NotWritableError: The current user does not have write permissions to a required path.
因此最简单的解决方法就是以管理员身份启动Anaconda(Anaconda Navigator或者Anaconda Prompt)
遇到的三个问题:在jupyter notebook中import tensorflow as tf报错找不到模块。
需要在tensorflow安装的虚拟环境中 conda install jupyter notebook。然后在开始菜单里面就会多一个下图红框启动项
遇到的第四个问题:安装完成后,ImportError: DLL load failed: 找不到指定的模块 之pywrap_tensorflow.py。根据电脑配置选择下载VC。
参考的博客:
Windows 10下基于Anaconda平台的TensorFlow详细安装步骤
Anaconda报NotWritableError错时解决的方法
Tensorflow 2.1.0 安装的坑