How to solve theano Segmentation fault?

本秂侑毒 提交于 2019-12-13 02:36:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!