jmschrei / pomegranate

Fast, flexible and easy to use probabilistic modelling in Python.
http://pomegranate.readthedocs.org/en/latest/
MIT License
3.29k stars 590 forks source link

[BUG] Installing version 0.14.8 #1057

Open timothy-barry opened 10 months ago

timothy-barry commented 10 months ago

Hello,

I am trying to install version 0.14.8 via

pip install pomegranate==0.14.8

However, I am getting the following error:

      Error compiling Cython file:
      ------------------------------------------------------------
      ...

      cpdef disable_gpu():
          global GPU
          GPU = False

      cdef ndarray_wrap_cpointer(void* data, numpy.npy_intp n):
           ^
      ------------------------------------------------------------

I am using Cython version 0.29.35.

cython --version
Cython version 0.29.35

Any help would be appreciated.

YuriOsokin commented 10 months ago

See this issue #1052 There is no simple solution for production. I had to migrate to version 1.0.0. It was a headache, since it is based on PyTorch, so all datatypes are tensors with specific shapes. However, it is doable.