Installation¶
CausalKit can be installed using pip or from source.
Prerequisites¶
CausalKit requires:
- Python 3.7 or later
- NumPy
- Pandas
- SciPy
- Statsmodels
- DoubleML (for advanced methods)
Installing with pip¶
The simplest way to install CausalKit is using pip:
pip install causalkit
This will install CausalKit and all its dependencies.
Installing from source¶
To install CausalKit from source:
- Clone the repository:
git clone https://github.com/yourusername/causalkit.git
- Navigate to the cloned directory:
cd causalkit
- Install the package in development mode:
pip install -e .
Verifying the installation¶
You can verify that CausalKit is installed correctly by importing it in Python:
import causalkit
print(causalkit.__version__)
Installing optional dependencies¶
For development or running tests, you can install additional dependencies:
pip install causalkit[dev]
This will install additional packages like pytest, flake8, and sphinx for development and testing.