问题
I am running a python file which content is:
import theano.tensor as T
This gives me a Segmentation fault. I am using anaconda. How can this be solved?
回答1:
I had the same problem after I updated scipy from version 0.17.1 to version 0.18.0
Try to create a virtual environment with conda (from Anaconda) only for theano, with the correct versions of scipy and numpy:
conda create --name theano_env theano python=2.7
or (for python 3.5):
conda create --name theano_env theano python=3.5
It solved the problem for me.
来源:https://stackoverflow.com/questions/38766801/how-to-solve-theano-segmentation-fault