安装theano [英] Installing theano

查看:80
本文介绍了安装theano的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过运行"pip install theano"在Windows 7 64位上使用Spyder 2.3.8安装了theano.运作良好.但是,当我尝试运行"import theano"时,出现以下错误:

I installed theano with Spyder 2.3.8 on Windows 7 64-bit by running "pip install theano". It worked well. But then, when I tried to run "import theano", I got the following error:


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')

那是什么意思?

推荐答案

使用Spyder是否有原因?

Is there a reason you are using Spyder?

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

On windows 7 x64, I would advise to either use Canopy from Enthought, which, if you are a student , you can get the complete package for free.

或者,我之前也使用过WinPython,它运行良好. 尽管您必须遵循所有步骤,包括:

Or, i also used WinPython before, it worked fine. Although you have to follow all steps, including :

正在安装Windows软件开发工具包7.1版,也可以安装其附带的最新Visual Studio,并且可以选择安装用于Python 2.7的Microsoft Visual C ++编译器

安装TDM GCC

但请务必检查

But be sure to check

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

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

我以前在Anaconda和Theano遇到过问题.所以我放弃了使用它. 但是,有一个朋友在Theano和Theano上也取得了成功.

I had problems with Anaconda and Theano before. So i gave up on using it. However a friend had success with it and Theano as well.

在安装theano之前,请确保已正确安装了环境和python安装程序.

Just be sure you have your environment and python setup installed properly prior to theano install.

where gcc
where gendef
where cl
where nvcc

命令提示符上的

可能显示某些内容...

on the Command Prompt Might reveal something...

我不是 GCC 专家,但是根据上面用户的链接, 我读到一个朋友说这与海湾合作委员会有关. 所以,是的,我建议您像我所说的那样重新检查.

Im not a GCC specialist, but according from the link from the user above, i read a friend saying its something related to GCC. So, yes, i suggest you re-check as i said .

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

Edit the question with that info and i might be able to help more and so will others.

@CantFindName

@CantFindName

Theano中的名称冲突

这篇关于安装theano的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆