该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
不知吧中那位在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
请教大家应该怎么改,一头雾水啊~~