import numpy
import theano.tensor as T
from theano import function
x=T.dscalar('x')
y=T.dscalar('y')
z=x+y
f=function([x,y],z)
print(f(2,3))
Traceback (most recent call last):
File "G:/python/pi.py", line 2, in <module>
import theano.tensor as T
File "F:\anaconda\lib\site-packages\theano\__init__.py", line 55, in <module>
from theano.compile import \
File "F:\anaconda\lib\site-packages\theano\compile\__init__.py", line 9, in <module>
from theano.compile.function_module import *
File "F:\anaconda\lib\site-packages\theano\compile\function_module.py", line 18, in <module>
import theano.compile.mode
File "F:\anaconda\lib\site-packages\theano\compile\mode.py", line 11, in <module>
import theano.gof.vm
File "F:\anaconda\lib\site-packages\theano\gof\vm.py", line 568, in <module>
from . import lazylinker_c
File "F:\anaconda\lib\site-packages\theano\gof\lazylinker_c.py", line 117, in <module>
preargs=args)
File "F:\anaconda\lib\site-packages\theano\gof\cmodule.py", line 1989, in compile_str
compile_stderr = decode(p_out[1])
File "F:\anaconda\lib\site-packages\theano\compat\__init__.py", line 35, in decode
return x.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte
1 个解决方案
#1
你看看是不是哪个目录的名字是汉语的。超级怀疑。
#1
你看看是不是哪个目录的名字是汉语的。超级怀疑。