Theano无法在PyCharm中正确编译

时间:2019-01-29 10:58:19

标签: python python-2.7 pycharm theano

对于大学工作,我们使用Theano来研究深度学习,在实验室计算机上,我们有一个使用Theano的自定义环境。

已将此环境复制到我的本地计算机上,尝试导入Theano时出现此错误:

import theano

x = theano.tensor.fscalar()

C:\Labs\theano\python.exe C:/Users/Jack/PycharmProjects/untitled5/MAIN.py

Traceback (most recent call last):
  File "C:/Users/Jack/PycharmProjects/untitled5/MAIN.py", line 3, in <module>
You can find the C code in this temporary file: c:\users\jack\appdata\local\temp\theano_compilation_error_bduwx3
    import theano as th
  File "C:\Labs\theano\lib\site-packages\theano\__init__.py", line 110, in <module>
    from theano.compile import (
  File "C:\Labs\theano\lib\site-packages\theano\compile\__init__.py", line 12, in <module>
    from theano.compile.mode import *
  File "C:\Labs\theano\lib\site-packages\theano\compile\mode.py", line 11, in <module>
    import theano.gof.vm
  File "C:\Labs\theano\lib\site-packages\theano\gof\vm.py", line 674, in <module>
    from . import lazylinker_c
  File "C:\Labs\theano\lib\site-packages\theano\gof\lazylinker_c.py", line 140, in <module>
    preargs=args)
  File "C:\Labs\theano\lib\site-packages\theano\gof\cmodule.py", line 2396, in compile_str
    (status, compile_stderr.replace('\n', '. ')))
. 

Process finished with exit code 1

我的一些朋友已经将相同的环境复制到其本地计算机上,并且能够无错运行Theano。

我尝试使用anaconda创建新的虚拟环境并将Theano安装在全新的环境中,但仍然收到此错误。我是否缺少任何必需的库,或者我在PyCharm中没有做一些事情来使其正确使用Theano?

0 个答案:

没有答案