pysurvival icon indicating copy to clipboard operation
pysurvival copied to clipboard

Mac OS python=3.9 Installation exception Solution

Open cy-dream opened this issue 7 months ago • 0 comments

Comment out all lines matching the following in every file under the pysurvival/cpp_extensions directory.

// __pyx_type_10pysurvival_6models_16_survival_forest__SurvivalForestModel.tp_print = 0;

Why?

  • The line contains deprecated Python C API (tp_print), so commenting it out avoids compilation errors in Python ≥3.8.

  • Works as a quick fix without modifying build systems.

Install

python setup.py install

cy-dream avatar Jun 06 '25 09:06 cy-dream