Compilation failed (return status=1): g++.exe: error: CreateProcess: No such file or directory错误
windows10上 theano安装之后出现的问题
>>> import theano
You can find the C code in this temporary file: e:\temp\theano_compilation_error_aeiist
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "F:\ANACONDA\lib\site-packages\theano\__init__.py", line 110, in <module>
from theano.compile import (
File "F:\ANACONDA\lib\site-packages\theano\compile\__init__.py", line 12, in <module>
from theano.compile.mode import *
File "F:\ANACONDA\lib\site-packages\theano\compile\mode.py", line 11, in <module>
import theano.gof.vm
File "F:\ANACONDA\lib\site-packages\theano\gof\vm.py", line 674, in <module>
from . import lazylinker_c
File "F:\ANACONDA\lib\site-packages\theano\gof\lazylinker_c.py", line 140, in <module>
preargs=args)
File "F:\ANACONDA\lib\site-packages\theano\gof\cmodule.py", line 2396, in compile_str
(status, compile_stderr.replace('\n', '. ')))
. ception: Compilation failed (return status=1): g++.exe: error: CreateProcess: No such file or directory
>>>
找了很久没有找到解决方案, 当找到方案在补上
更新解决方案
原因实在没有找到, 最后实在没办法了 于是用conda 重新建了个虚拟的python3.5环境 然后按照以下博客 安装成功
1. 创建虚拟环境
https://blog.csdn.net/qq1483661204/article/details/78182430
2.安装theano
https://blog.csdn.net/linangfs/article/details/81366893
3. 上一个步骤 发现安装theano时 总是网络报错于是修改了conda源
https://blog.csdn.net/jiyangsb/article/details/82430794
然后成功 import theano !