Skip to content

Errors installing package #21

@AparaV

Description

@AparaV

Hi! I am running into issues when installing the package in Python 3.11.

With pip

I am running

pip install causal_tree_learn

I get a ModuleNotFoundError: No module named 'Cython' even though I have successfully installed cython.

Building locally

I also tried to clone the repo and build it locally using

python setup.py build_ext --inplace

With this, I get a compilation error

Error compiling Cython file:
------------------------------------------------------------
...
    cdef int third_quartile
    cdef np.ndarray[np.float_t, ndim=2] yy
    cdef np.ndarray[np.float_t, ndim=2] tt
    cdef np.ndarray x

    cdef np.ndarray[np.long_t, ndim=1] treat_num
                       ^
------------------------------------------------------------

CTL/causal_tree/util_c.pyx:362:23: Invalid type.

What do you think is going wrong? How do I successfully install and use the package?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions