1.找不到CUDA
由于没有安装CUDA,需要到官网下载,1个多G,虽然计算能力能力强,但是下载很慢,费时间,电脑配置差了也罩不住
所以,就装个cpu版本的
pip install tensorflow -cpu就可以了
不指定cpu就会装gpu版本的
2.module ‘tensorflow’ has no attribute ‘placeholder’
这个问题是tensorflow版本太高了,API接口改了,就改为1.15版本的tensorflow
http://mirrors.aliyun.com/pypi/simple/tensorflow-cpu/
这个网址下载对应的Python版本
3.import tensorflow as tf print(tf.__version__)
1.15.0-rc3
运行这个有结果,就成功了