码迷,mamicode.com
首页 > Windows程序 > 详细

win7 64bit 安装tensorflow 小随笔

时间:2017-08-13 11:14:48      阅读:738      评论:0      收藏:0      [点我收藏+]

标签:process   erro   ips   ash   框架   attribute   bit   lips   import   

第一次写博客,主要记录下安装深度学习框架(tensorflow),装好了很简单(一句话),开始我以为很麻烦,没有N卡,不知道如何入手。好了,言归正传。

我一般喜欢喜欢eclipse的pydev(个人感觉很好用),然后python主要是anconda(清华镜像),加载tensorflow

1.下载anconda3,百度ancond清华镜像,下载anconda3-cp35-cp35m-XXXx,下载安装好,下载eclipse (免安装),然后配置pydev,与本文无关,这里不叙述。

2.然后anconda prompt(开始那里找),输入conda install tensorflow,输入Y,等会就安装好了。

3.测试tensorflow  新建pydev module,抬头加# -*- coding: utf-8 -*- ,下面输入import tensorflow as tf,跑下没问题就安装成功了。

4.跑下CNN官方mnist数据  ,只能说cpu好慢(6G),等有钱换N卡跑下。

注意:tensorflow升级1.0会出现一些bug ,这里简单叙述下解决方式。

1.出AttributeError: module ‘pandas’ has no attribute ‘computation’

办法:conda update dask

2.AttributeError: ‘module’ object has no attribute ‘mul’

办法:tf.multiply替代tf.mul

3.AttributeError: ‘module’ object has no attribute ‘sub’

办法:用tf.subtract替代tf.sub

4.AttributeError: ‘module’ object has no attribute ‘neg’

办法:用tf.negative替代tf.neg

5.出现一些其他问题可以百度,这里不列举。什么修改全局变量(只是名称不同)

win7 64bit 安装tensorflow 小随笔

标签:process   erro   ips   ash   框架   attribute   bit   lips   import   

原文地址:http://www.cnblogs.com/zhangtaosx/p/7352481.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!