解决问题:ImportError: cannot import name gpuarray

  • 报错1:
    解决问题:ImportError: cannot import name gpuarray_第1张图片
  • 报错2:
    解决问题:ImportError: cannot import name gpuarray_第2张图片
  • 解决办法:
  • 我刚刚碰到这个和其他一些类似的错误。看来PIP中Theano的稳定版本会阻止各种错误,使您认为您的CUDA/NVIDIA或甚至PYGPU安装已损坏。
  • "I just ran into this and some other similar errors. It appears the stable version of Theano in pip will barf all kinds of errors making you think your cuda / nvidia or even the pygpu install is broken. "
  • sudo pip install -U git+https://github.com/Theano/Theano.git#egg=Theano
  • 参考:https://github.com/Theano/libgpuarray/issues/393

你可能感兴趣的:(python)