A python library for cooperative game theory
Table of Contents
To install latest stable version use:
pip install shapleypy
To install latest development version you can clone the repository and use hatch (must be installed) to create an enviroment containg latest dev version:
hatch shell
or build the project and install it to whatever enviroment you want:
hatch build
# the wheel will be located in dist directory
pip install $PATH_TO_WHEEL_FILE
Few non-python dependencies have to be installed prior the installation of the Shapleypy. Those could be installed via distribution package manager.
Ubuntu:
sudo apt-get install -y ppl-dev libgmp-dev libmpfr-dev libmpc-dev
There are some non-python requirements. These could be installed via homebrew:
brew install ppl gmp mpfr libmpc
Note
If you installed those dependencies via brew
as shown you probably also will need to set paths of libraries installed by brew
for clang:
export CFLAGS="-I/opt/homebrew/include/ -L/opt/homebrew/lib/ -I/opt/homebrew/include/ -L/opt/homebrew/lib $CFLAGS"
Warning
The core solution concept is currently not available for Windows.
Shapleypy
is distributed under the terms of the GPL-3.0 license.