您的位置:首页 > 其它

Windows安装TensorFlow 0.12 最便捷方案

2017-03-05 14:24 295 查看
由于截图不方便上传,已经同步到github

具体参考:https://github.com/matiji66/tensorflow-install 

tensorflow安装环境:

win7 64

Conda --version Anaconda 64 4.3.13

 

1. 新建一个python 3.5
版本

 

conda create -n tensorflow python=3.5
2. Activate tensorflow

3. pip install tensorflow 默认是没有安装最新版本的

Both distributions include pip. To install the CPU-only version of TensorFlow, enter the following command at a command prompt:

C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc1-cp35-cp35m-win_amd64.whl
To install the GPU version of TensorFlow, enter the following command at a command prompt:

C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl
4. 如何进入Python命令行,使用tf呢

4.1 activate tensorflow

4.2 python

 

5如何在PyCharm使用呢:

5.1在PyCharm中打开设置界面Ctrl +alt +s快捷键

 

 

下面看到的是安装完Anaconda-python 2.7的解释器:

 

 

下面是手动切换到自己建立的tensorflow 的python3.5环境的解释器:

 

 

选中之后就能使用python的3.5的环境以及tensorflow的开发测试.

 

可见不论是在 python shell中还是在其他的python IDE中都是很容易的进行python的版本切换。

这比使用docker安装方便多了,关键是搞了半天,docker-tool安装好了,但是dock的tensorflow镜像下载不下了。

 

补充说明的是python以及python package的安装过程中使用国内的镜像比较快。

具体参考:https://github.com/matiji66/tensorflow-install
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: