Python SDK Installation
Requirements
Make sure you are running:
Python 3.9or above- One of the following OS:
- macOS (≥ 10.9)
- Windows (any version supporting 64bit)
- Linux (any version supporting 64bit)
Decentriq suggests using the SDK from a clean Python environment.
Instructions
Follow the instruction below to proceed with the environment creation and the installation:
Open a terminal window.
Create a new directory and navigate into it.
Create a new virtual environment to install into. You can use, for instance, Python's own
venvpackage:python -m venv env
source env/bin/activateMake sure that you have the latest version of pip installed:
pip install --upgrade pipInstall the
decentriq_platformpackage:pip install decentriq_platformTest that the installation was successful. The following shouldn't print an error:
python -c "import decentriq_platform"
Importing
In your Python script or Jupyter notebook, import the Decentriq library:
import decentriq_platform as dq
Next steps
Now that you have installed the SDK, read the "getting started" tutorial that most suits your use case: