Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
265 views
in Technique[技术] by (71.8m points)

python - Installing 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:Anaconda3libsite-packagesheano\__init__.py", line 55, in 
    from theano.compile import 

  File "D:Anaconda3libsite-packagesheanocompile\__init__.py", line 9, in 
    from theano.compile.function_module import *

  File "D:Anaconda3libsite-packagesheanocompilefunction_module.py", line 18, in 
    import theano.compile.mode

  File "D:Anaconda3libsite-packagesheanocompilemode.py", line 11, in 
    import theano.gof.vm

  File "D:Anaconda3libsite-packagesheanogofvm.py", line 25, in 
    in_c_key=False)

  File "D:Anaconda3libsite-packagesheanoconfigparser.py", line 231, in AddConfigVar
    configparam.fullname)

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

What does that mean?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Is there a reason you are using Spyder?

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.

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

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

You might wanna check if you missed any steps.

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.

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

Doing

where gcc
where gendef
where cl
where nvcc

on the Command Prompt Might reveal something...

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

Name conflicting in Theano


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...