With cmd you're probably using an old gcc compiler. Spyder probably 
modifies some environment variables (PATH or something related to gcc) 
which select a more recent version of gcc.
If spyder is called through a .bat file, have a look at it. Or try to print 
the env variables from python inside spyder (it should be os.environ or 
similar).

On Wednesday, March 1, 2017 at 4:43:29 AM UTC+1, Chih-Wei Chang wrote:
>
> Hi,
>
> I currently run a code (
> https://www.dropbox.com/s/54k3szl9d7f16gu/Conv_Relax.py?dl=0) that can be 
> executed by Spyder but not by cmd. I am using Theano on Windows. When I run 
> the code on cmd, it shows the following error messages:
>
> Traceback (most recent call last):
>   File "Conv_Relax.py", line 53, in <module>
>     updates=[(g, out)]
>   File 
> "C:\Users\cchan\Anaconda3\lib\site-packages\theano\compile\function.py", 
> line 320, in function
>     output_keys=output_keys)
>   File 
> "C:\Users\cchan\Anaconda3\lib\site-packages\theano\compile\pfunc.py", line 
> 479, in pfunc
>     output_keys=output_keys)
>   File 
> "C:\Users\cchan\Anaconda3\lib\site-packages\theano\compile\function_module.py",
>  
> line 1777, in orig_function
>     defaults)
>   File 
> "C:\Users\cchan\Anaconda3\lib\site-packages\theano\compile\function_module.py",
>  
> line 1641, in create
>     input_storage=input_storage_lists, storage_map=storage_map)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\link.py", 
> line 690, in make_thunk
>     storage_map=storage_map)[:3]
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\vm.py", line 
> 1003, in make_all
>     no_recycling))
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\op.py", line 
> 970, in make_thunk
>     no_recycling)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\op.py", line 
> 879, in make_c_thunk
>     output_storage=node_output_storage)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\cc.py", line 
> 1200, in make_thunk
>     keep_lock=keep_lock)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\cc.py", line 
> 1143, in __compile__
>     keep_lock=keep_lock)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\cc.py", line 
> 1595, in cthunk_factory
>     key=key, lnk=self, keep_lock=keep_lock)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\cmodule.py", 
> line 1142, in module_from_key
>     module = lnk.compile_cmodule(location)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\cc.py", line 
> 1506, in compile_cmodule
>     preargs=preargs)
>   File "C:\Users\cchan\Anaconda3\lib\site-packages\theano\gof\cmodule.py", 
> line 2204, in compile_str
>     (status, compile_stderr.replace('\n', '. ')))
>
>  Exception: ('The following error happened while compiling the node', 
> MakeVector{dtype='int64'}(Shape_i{0}.0, Shape_i{1}.0, Shape_i{2}.0, 
> Shape_i{3}.0), '\n', 'Compilation failed (return status=1): 
> C:\\Users\\cchan\\AppData\\Local\\Theano\\compiledir_Windows-10-10.0.14393-SP0-Intel64_Family_6_Model_158_Stepping_9_GenuineIntel-3.5.2-64\\tmprpqq70qb\\mod.cpp:1:0:
>  
> sorry, unimplemented: 64-bit mode not compiled in\r.  #include 
> <Python.h>\r.  ^\r. ', "[MakeVector{dtype='int64'}(<TensorType(int64, 
> scalar)>, <TensorType(int64, scalar)>, <TensorType(int64, scalar)>, 
> <TensorType(int64, scalar)>)]")
>
> Could anyone give me a help?
> Thank you,
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to