Skip to content

Installation

pyDataverse is a Python library for interacting with Dataverse installations. It provides a high-level interface for creating datasets, managing collections, working with files, and accessing Dataverse APIs.

pyDataverse requires Python 3.10 or higher. You can check your Python version by running python --version in your terminal. If you need to install or upgrade Python, visit python.org.

Create and activate a virtual environment first:

Terminal window
python -m venv .venv
source .venv/bin/activate

Choose one package manager (pip, uv, or poetry) for this environment.

Install from PyPI:

Terminal window
python -m pip install pyDataverse

Install from local source (repository checkout):

Terminal window
python -m pip install .

Install with test dependencies:

Terminal window
python -m pip install ".[tests]"

Install from PyPI:

Terminal window
uv pip install pyDataverse

Install from local source (repository checkout):

Terminal window
uv pip install .

Install with test dependencies:

Terminal window
uv sync --extra tests

Install runtime dependencies:

Terminal window
poetry install

Install with test dependencies:

Terminal window
poetry install --extras tests

After installation, you’re ready to start using pyDataverse. Here’s what to do next:

  • Read the Dataverse documentation to learn how to create datasets and manage collections
  • Try connecting to a public Dataverse installation to explore what’s available
  • For authenticated operations like creating datasets or uploading files, you’ll need an API token from your Dataverse installation (available in your account settings)

If you encounter issues or have questions: