Error importing theano “cannot import name gof”

前端 未结 4 2000
迷失自我
迷失自我 2021-01-12 01:15

I am current getting the error

ImportError: cannot import name gof

when importing theano.

>>> import          


        
4条回答
  •  离开以前
    2021-01-12 01:57

    Most of the time, when I see this error, it is caused by those 2 errors:

    1) A syntax error in Theano. Update Theano and make sure to have no local modifcation. I nerver saw this error in the master of Theano, but just in case.

    2) When there is multiple version of Theano that are installed.

    In both case, remove all version of Theano. Do it multiple time to be sure there is none left. Then install again.

    From memory, this always solved the problem when it wasn't a syntax error during development (but not in the master version of Theano that you use)

提交回复
热议问题