square / pysurvival

Open source package for Survival Analysis modeling
https://www.pysurvival.io/
Apache License 2.0
347 stars 107 forks source link

Install error #71

Open Tommyj117 opened 9 months ago

Tommyj117 commented 9 months ago

Get this error during install....

/usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro ‘PyUnicode_WSTR_LENGTH’ 264 | PyUnicode_WSTR_LENGTH(op))) | ^~~~~ pysurvival/cpp_extensions/_non_parametric.cpp:9677:59: note: in expansion of macro ‘PyUnicode_GET_SIZE’ 9677 | (PyUnicode_GET_SIZE(*argname) != PyUnicode_GET_SIZE(key)) ? 1 : | ^~~~~~ /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject op) { | ^~~~~~ error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> pysurvival

morinstar commented 8 months ago

might try installing c++ compliler and python 3.7 venv

Tommyj117 commented 8 months ago

Thanks, I’ll give it a try

On Tue, Dec 26, 2023 at 9:27 PM morinstar @.***> wrote:

might try installing c++ compliler and python 3.7 venv

— Reply to this email directly, view it on GitHub https://github.com/square/pysurvival/issues/71#issuecomment-1869888003, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDZZVEVB2XGWSS5O6RY5CGDYLOBPXAVCNFSM6AAAAAA7BVWG6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZHA4DQMBQGM . You are receiving this because you authored the thread.Message ID: @.***>