A python library for cooperative game theory
Table of Contents
To install latest stable version use:
pip install shapleypyTo install latest development version you can clone the repository and use hatch (must be installed) to create an enviroment containg latest dev version:
hatch shellor 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_FILEFew 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-devThere are some non-python requirements. These could be installed via homebrew:
brew install ppl gmp mpfr libmpcNote
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.