Theano安装,nvcc不在路径中

时间:2015-06-02 11:29:36

标签: python installation theano nvcc

我已经使用他们的指南http://deeplearning.net/software/theano/install_windows.html在winpython上安装了the7在Windows7,64bit上,我认为它起作用了,因为当我运行他们的第一个例子时,我确实得到了预期的结果而且没有错误。我想继续安装部件:配置Theano用于GPU使用但是当我再次运行时,我在python控制台中有这个:

Administration Console encountered the following error: weblogic.application.ModuleException: Exception preparing: WseeEjbModuleExtension for Module(MaltWebServices)  
at weblogic.wsee.deploy.WseeEjbModuleExtension.postPrepare(WseeEjbModule Extension.java:52)    
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:89) 
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu leListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleSta teDriver.java:172)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleSta teDriver.java:167)
at weblogi.application.utils.StateMachineDriver.nextState(StateMachineD river.java:35)
at weblogic.application.internal.flow.ModuleStateDriver.prepare(ModuleSt ateDriver.java:38)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep loymentCallbackFlow.java:139)        
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep loymentCallbackFlow.java:55)        
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.ja va:706)        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD river.java:35)        
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.jav a:61)        at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158) 
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(App ContainerInvoker.java:60)        
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207) 
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.do Prepare(ActivateOperation.java:96)        
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.pr epare(AbstractOperation.java:229)        
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploym entPrepare(DeploymentManager.java:747)         
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploy mentList(DeploymentManager.java:1216)        
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare (DeploymentManager.java:250)        
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.pre pare(DeploymentServiceDispatcher.java:159)        
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171) 
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)   
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallb ackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)        
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) Caused by: java.lang.IllegalArgumentException: Class not found for link: null: avaialbe:{MaltBean=class com.btg.malt.ejb.MaltBean}        
at weblogic.wsee.deploy.WSEEAnnotationProcessor.loadPorts(WSEEAnnotation Processor.java:311)        
at weblogic.wsee.deploy.WSEEAnnotationProcessor.load(WSEEAnnotationProce ssor.java:292)        
at weblogic.wsee.deploy.WSEEAnnotationProcessor.process(WSEEAnnotationProcessor.java:63) at weblogic.wsee.deploy.WSEEModule.prepare(WSEEModule.java:117)        
at weblogic.wsee.deploy.WseeEjbModuleExtension.postPrepare(WseeEjbModule Extension.java:43)

我正在使用的.theanorc文件是:

runfile('C:/Users/PS/Desktop/prova theano.py', wdir='C:/Users/PS/Desktop')
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
ERROR:theano.sandbox.cuda:nvcc compiler not found on $PATH. Check your nvcc installation and try again.
NP time: 0.156000[s], theano time: 0.181000[s] (times should be close when run on CPU!)
Result difference: 0.000000

我在C:\ SciSoft \ WinPython-64bit-2.7.9.4 \ settings中添加了它,正如我从指南中所理解的那样。

顺便说一句,我检查了C:\ SciSoft \ env.bat,当我写其中nvcc 时,它说没有找到文件,而是我对其他检查没有任何问题。那是因为我没有NVIDIA卡吗?我完全失去了。任何帮助?谢谢

2 个答案:

答案 0 :(得分:1)

Theano旨在(几乎)在CPU和GPU上工作。您不需要GPU来使用Theano,如果您没有Nvidia GPU,那么您根本不应该尝试安装任何特定于GPU的内容。

答案 1 :(得分:-1)

aleju,如果你不想(或不能)将theano与GPU一起使用,你只需要改变.theanorc只使用cpu。除了性能不佳外,这不会造成任何问题。

[global]
device = cpu
...