1、查看python安装的版本信息。
python.exe -c "import distutils.util; print(distutils.util.get_platform())"
![]()
或
python

2、根据版本下载 tensorflow
下载地址 http://fstab.net/pypi/simple/twisted/

说明:
(1)也可以直接安装最新版本的 tensorflow:pip install tensorflow
3、安装 tensorflow
pip install tensorflow-1.9.0-cp36-cp36m-win_amd64.whl

4、查看tensorflow版本。
python
import tensorflow as tf
tf.__version__

说明:
(1)如果报错提示:ImportError: numpy.core._multiarray_umath failed to import

只需升级下numpy 或者 先卸载再安装numpy即可。
升级numpy:pip install --upgrade numpy
卸载numpy:pip uninstall numpy
安装numpy:pip install numpy
(2)如果报:ImportError: DLL load failed: 找不到指定的模块。

可以安装 tensorflow 1.12.0 版本 和 numpy 1.16.0 版本。
卸载 tensorflow:pip uninstall tensorflow
安装 tensorflow:pipp install tensorflow==1.12.0
卸载 numpy:pip uninstall numpy
安装 numpy:pip install numpy==1.16.0
(3)如果还是报错,则见另一篇文件 windows Anaconda3 安装 tensorflow
【一起学习】
7万+

被折叠的 条评论
为什么被折叠?



