您的位置:首页 > 编程语言 > Python开发

windows下安装tensorflow0.12(cpu版本)

2017-03-29 20:21 676 查看
第一步:下载anaconda 最好是Anaconda3-4.2.0-Windows-x86_64(支持python3.5)而我刚开始下载是Anaconda3-4.3.1-Windows-x86_64(支持python3.6)结果在安装tensorflow中出现not a supported wheel on this platform.错误。因为官网上说了TensorFlow
supports only 64-bit Python 3.5
on Windows. We have tested the pip packages with the following distributions of Python

第二步:安装anaconda,一步步进行就可

第三步:cpu版本

在win+R 输入cmd打开命令提示符

pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl[/code]  

如果出现Cannot
remove entries from nonexistent file e:\anaconda3\lib\site-packages\easy-install.pth11


输入 pip install --ignore-installed --upgrade pip setuptools 更新setuptools版本

再重新pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc0-cp35-cp35m-win_amd64.whl 
即可

最后一步 测试

在命令提示符下输入python,输入import tensorflow as tf 

无报错则安装成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息