Installation

From binary packages

Warning

Since v1.15, only Python 3.x binaries are provided.

Pip

Install the package from PyPI:

pip3 install openturns

For an installation without administrative priviledges the option --user can be used. Note that pip does not install pre-releases unless given the option --pre.

Conda

This is relevant to the Conda userland Python package manager. To avoid package conflicts we suggest installing conda from Miniconda instead of Anaconda. Install the package from Anaconda.org:

conda config --add channels conda-forge
conda config --set channel_priority strict
conda install openturns

Alternatively, you can download the otconda bundle containing the library and its modules that allows for an offline installation. Note that pre-releases are published on conda-forge like regular releases, so if you want to stick to the stable version you will have to explicitely specify the required version, eg conda install openturns=1.15.

Windows

Download the installer matching your python version and architecture from GitHub Then just run installer and follow the instructions.

A command-line installation is also possible:

openturns-1.15-py37-x86_64.exe /userlevel=1 /S /FORCE /D=%PREFIX%

Debian/Ubuntu

We support the following Debian-based distributions:

Distribution name

Repository address

Ubuntu 16.04 LTS ‘Xenial Xerus’

deb http://ubuntu.openturns.org xenial main

Ubuntu 18.04 LTS ‘Bionic Beaver’

deb http://ubuntu.openturns.org bionic main

Ubuntu 20.04 LTS ‘Focal Fossa’

deb http://ubuntu.openturns.org focal main

Debian 9.0 ‘Stretch’

deb http://debian.openturns.org stretch main

Debian 10.0 ‘Buster’

deb http://debian.openturns.org buster main

Add the mirror signature:

curl http://debian.openturns.org/openturns.org-repo.key | sudo apt-key add -

To be able to retrieve packages, you must add the appropriate repository address to your sources list. To do so, you may either use the graphical user interface of aptitude or you can edit the sources-list file (/etc/apt/sources.list).

For instance, assuming you are running Ubuntu 18.04, add the following source to your sources list:

echo deb http://ubuntu.openturns.org bionic main | sudo tee /etc/apt/sources.list.d/openturns.list

Note

Use the bash command lsb_release -c in order to determine the codename of your distribution.

After editing aptitude’s sources-list, you must update your packages database using either the graphical interface or by issuing the following command:

sudo apt update

The following packages should now be available:

Package name

Description

libopenturns0.x

library

libopenturns-dev

development package

python3-openturns

Python 3 module

openturns-examples

examples

Use the following command to check:

apt search openturns

For example, to install the Python 3 module:

sudo apt install python3-openturns

RPM-based distributions

Add the repository corresponding to your operating system:

curl http://download.opensuse.org/repositories/science:/openturns/CentOS_8/science:openturns.repo -o /etc/yum.repos.d/science-openturns.repo
curl http://download.opensuse.org/repositories/science:/openturns/Fedora_32/science:openturns.repo -o /etc/yum.repos.d/science-openturns.repo
curl http://download.opensuse.org/repositories/science:/openturns/openSUSE_Leap_15.1/science:openturns.repo -o /etc/yum.repos.d/science-openturns.repo
curl http://download.opensuse.org/repositories/science:/openturns/Mageia_7/science:openturns.repo -o /etc/yum.repos.d/science-openturns.repo

Import the gpg key corresponding to your operating system:

rpm --import http://download.opensuse.org/repositories/science:/openturns/CentOS_8/repodata/repomd.xml.key
rpm --import http://download.opensuse.org/repositories/science:/openturns/Fedora_32/repodata/repomd.xml.key
rpm --import http://download.opensuse.org/repositories/science:/openturns/openSUSE_Leap_15.1/repodata/repomd.xml.key
rpm --import http://download.opensuse.org/repositories/science:/openturns/Mageia_7/repodata/repomd.xml.key

Install the package:

yum install python3-openturns

Archlinux

Install from AUR:

aurman -S openturns

FreeBSD

Install from FreshPorts:

pkg install openturns

From sources

Checkout the required Dependencies.

You can checkout the development trunk:

git clone https://github.com/openturns/openturns.git
cd openturns
cmake -DCMAKE_INSTALL_PREFIX=~/.local .
make install

Note

When installing into ~/.local you will not need to set PYTHONPATH environment variable for Python to be able to import openturns