windows python3.6 安装 tensorflow

1、查看python安装的版本信息。

python.exe -c "import distutils.util; print(distutils.util.get_platform())"

python

2、根据版本下载 tensorflow

下载地址 http://fstab.net/pypi/simple/twisted/

windows python3.6 安装 tensorflow_第1张图片

说明:

(1)也可以直接安装最新版本的 tensorflow:pip install tensorflow

3、安装 tensorflow

pip install tensorflow-1.9.0-cp36-cp36m-win_amd64.whl

windows python3.6 安装 tensorflow_第2张图片

4、查看tensorflow版本。

python

import tensorflow as tf

tf.__version__

 

说明:

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

windows python3.6 安装 tensorflow_第3张图片

只需升级下numpy 或者 先卸载再安装numpy即可。

升级numpy:pip install --upgrade numpy

卸载numpy:pip uninstall numpy

安装numpy:pip install numpy

(2)如果报:ImportError: DLL load failed: 找不到指定的模块。

windows python3.6 安装 tensorflow_第4张图片

可以安装 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

 

作者:magic_kid_2010,如果觉得笔者的博客对您有所帮助,欢迎【犒赏】

你可能感兴趣的:(Python3)