Pre-built binary packages for Linux, MacOS, and Windows are available for Anaconda. If you have Anaconda installed, run:
conda install -c sebp scikit-survival
If you want to build scikit-survival from source, you will need a C/C++ compiler to compile extensions.
On Linux, you need to install gcc, which in most cases is available via your distribution’s packaging system. Please follow your distribution’s instructions on how to install packages.
On MacOS, you need to install clang, which is available from the Command Line Tools package. Open a terminal and execute:
Alternatively, you can download it from the Apple Developers page. Log in with your Apple ID, then search and download the Command Line Tools for Xcode package.
On Windows, the compiler you need depends on the Python version you are using. See this guide to determine which Microsoft Visual C++ compiler to use with a specific Python version.
To install the latest release of scikit-survival from source, run:
pip install scikit-survival
pip install git+https://github.com/sebp/scikit-survival.git
The current minimum dependencies to run scikit-survival are:
Python 3.8 or later
numpy 1.17.3 or later
pandas 1.0.5 or later
scipy 1.3.2 or later