pysurvival
pysurvival copied to clipboard
Mac OS python=3.9 Installation exception Solution
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