python theano 关系_用theano的进来下

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

不知吧中那位在win2k3 server装过theano的,我安装号theano后,import theano时出现以下问题:

import theano>>

>

> Problem occurred during compilation with the command line below:

> g++ -shared -g -IC:\Python27\lib\site-packages\numpy\core\include

> -IC:\Python27\include -o C:\Documents and

> Settings\Administrator\.theano\compiledir_Windows-2003Server-5.2.3790-SP2-x86_Family_6_Model_44_Stepping_2_GenuineIntel-2.7.2\lazylinker_ext\lazylinker_ext.pyd

> C:\Documents and

> Settings\Administrator\.theano\compiledir_Windows-2003Server-5.2.3790-SP2-x86_Family_6_Model_44_Stepping_2_GenuineIntel-2.7.2\lazylinker_ext\mod.cpp

> -LC:\Python27\libs -LC:\Python27 -lpython27

>

> Traceback (most recent call last):

> File "", line 1, in

> import theano

> File

> "C:\Python27\lib\site-packages\theano-0.5.0-py2.7.egg\theano\__init__.py",

> line 65, in

> import compile

> File

> "C:\Python27\lib\site-packages\theano-0.5.0-py2.7.egg\theano\compile\__init__.py",

> line 2, in

> import function_module

> File

> "C:\Python27\lib\site-packages\theano-0.5.0-py2.7.egg\theano\compile\function_module.py",

> line 18, in

> import mode as mode_module

> File

> "C:\Python27\lib\site-packages\theano-0.5.0-py2.7.egg\theano\compile\mode.py",

> line 9, in

> import theano.gof.vm

> File

> "C:\Python27\lib\site-packages\theano-0.5.0-py2.7.egg\theano\gof\vm.py",

> line 398, in

> import lazylinker_c

> File

> "C:\Python27\lib\site-packages\theano-0.5.0-py2.7.egg\theano\gof\lazylinker_c.py",

> line 58, in

> preargs=args)

> File

> "C:\Python27\lib\site-packages\theano-0.5.0-py2.7.egg\theano\gof\cmodule.py",

> line 1554, in compile_str

> p = subprocess.Popen(cmd, stderr=subprocess.PIPE)

> File "C:\Python27\lib\subprocess.py", line 672, in __init__

> errread, errwrite) = self._get_handles(stdin, stdout, stderr)

> File "C:\Python27\lib\subprocess.py", line 797, in _get_handles

> c2pwrite = self._make_inheritable(c2pwrite)

> File "C:\Python27\lib\subprocess.py", line 823, in _make_inheritable

> _subprocess.DUPLICATE_SAME_ACCESS)

> WindowsError: [Error 6]

去theano-user googlegroup上发帖,说是让我改写 cmodule.py 文件,原文如下:

Try modifying cmodule.py to use dummy stdin and stdout in the call to subprocess.Popen, as is done in compiledir.py

-=- Olivier

请教大家应该怎么改,一头雾水啊~~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值