tensorflow安装(windows 64bit python2/python3共存)

1.安装python2.7(64bit)

2.安装python3.6(64bit)

3.卸载pyython3.6,这时py -2/3还是可用的

4.下载安装anaconda(试试清华的镜像:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/)

5.py -3 -m pip install --upgrade tensorflow,可能失败

需要升级一下pip:py -3 -m pip install --upgrade pip

pip install --upgrade --ignore-installed setuptools

然后再试


测试结果

py -3

import tensorflow


C:\Users\admin>py -3
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
>>> exit()


C:\Users\admin>




猜你喜欢

转载自blog.csdn.net/abednego1979/article/details/72510909