首页 文章

安装theano

提问于
浏览
4

我通过运行“pip install theano”在Windows 7 64位上安装了带有Spyder 2.3.8的theano . 它运作良好 . 但是,当我试图运行“import theano”时,我收到以下错误:

Traceback (most recent call last):

  File "", line 1, in 
    import theano

  File "D:\Anaconda3\lib\site-packages\theano\__init__.py", line 55, in 
    from theano.compile import \

  File "D:\Anaconda3\lib\site-packages\theano\compile\__init__.py", line 9, in 
    from theano.compile.function_module import *

  File "D:\Anaconda3\lib\site-packages\theano\compile\function_module.py", line 18, in 
    import theano.compile.mode

  File "D:\Anaconda3\lib\site-packages\theano\compile\mode.py", line 11, in 
    import theano.gof.vm

  File "D:\Anaconda3\lib\site-packages\theano\gof\vm.py", line 25, in 
    in_c_key=False)

  File "D:\Anaconda3\lib\site-packages\theano\configparser.py", line 231, in AddConfigVar
    configparam.fullname)

AttributeError: ('This name is already taken', 'profile')

那是什么意思?

1 回答

  • 0

    你有没有理由使用Spyder?

    在Windows 7 x64上,我建议使用Enthought的Canopy,如果你是学生,你可以免费获得完整的包 .

    或者,我之前也使用过WinPython,它工作正常 . 虽然您必须遵循所有步骤,包括:

    Installing Windows Software Development Kit version 7.1 or you can install the newest Visual Studio which comes with it and it comes with an option to install Microsoft Visual C++ Compiler for Python 2.7

    Installing TDM GCC

    But be sure to check

    http://deeplearning.net/software/theano/install_windows.html

    您可能想检查一下是否错过了任何步骤 .

    我之前遇到过Anaconda和Theano的问题 . 所以我放弃了使用它 . 然而,一位朋友也成功地使用了Theano和Theano .

    确保在安装之前正确安装了环境和python设置 .

    where gcc
    where gendef
    where cl
    where nvcc
    

    on the Command Prompt Might reveal something...

    我不是 GCC 专家,但根据上面用户的链接,我读了一个朋友说它与GCC相关的东西 . 所以,是的,我建议你按照我的说法重新检查一下 .

    使用该信息编辑问题,我可以提供更多帮助,其他人也可以提供帮助 .

    @CantFindName

    Name conflicting in Theano

相关问题