Skip to content

Installation

Get started with pyAgrum using one of the following installation methods. Choose the one that best suits your environment.

Install pyAgrum using Python’s package manager.

Terminal window
pip install pyAgrum

Install pyAgrum via conda-forge for Anaconda environments.

Terminal window
conda install -c conda-forge pyagrum

Run pyAgrum in a Docker container for a pre-configured environment.

Launch a Jupyter notebook with pyAgrum pre-installed:

Terminal window
docker pull agrumery/pyagrum-notebook:latest
docker run -it --rm -p 8888:8888 -v <workfolder>:/home/jovyan/work --user root -e NB_UID=1000 agrumery/pyagrum-notebook

Then, open your browser and navigate to:

Terminal window
http://127.0.0.1:8888

For a lightweight pyAgrum environment:

Terminal window
docker pull agrumery/pyagrum:latest
docker run -it agrumery/pyagrum

Build and install pyAgrum from source for Windows, Linux, or macOS.

Terminal window
# 1. Clone the pyAgrum repository
git clone https://gitlab.com/agrumery/aGrUM.git
# 2. Install dependencies
pip install numpy scipy matplotlib pydotplus
# 3. Build pyAgrum
cd aGrUM
python act release test -t quick pyAgrum
# 4. Install pyAgrum
python act install pyAgrum -d <installation_folder>