# Installation for DuckDB failed

**URL:** <https://discourse.getdbt.com/t/installation-for-duckdb-failed/21066>\
**Category:** Help\
**Tags:** dbt-core\
**Created:** [October 22, 2026, 5:49pm UTC](https://discourse.getdbt.com/t/installation-for-duckdb-failed/21066 "2026-10-22T17:49:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeBaFlu](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@SeBaFlu](https://discourse.getdbt.com/u/SeBaFlu)\
**Post date:** [October 22, 2026, 5:49pm UTC](https://discourse.getdbt.com/t/installation-for-duckdb-failed/21066/1 "2026-10-22T17:49:54Z")

</div>

## The problem I have:

- installing of dbt-duckdb failed:  
(.venv) PS C:\Workdir\Repositories\TestRepo\> python -m pip install dbt-duckdb
- error message see below

## The context of why I’m trying to do this:

to make dbt run for DuckDB inside VsCode

## What I’ve already tried

Upgraded setuptools to 84.2.1 - doesn’t help:

```auto
(.venv) PS C:\Workdir\Repositories\TestRepo> python -m pip install --upgrade setuptools
Collecting setuptools
  Using cached setuptools-84.2.1-py3-none-any.whl.metadata (6.6 kB)
Using cached setuptools-84.2.1-py3-none-any.whl (876 kB)
Installing collected packages: setuptools
Successfully installed setuptools-84.2.1

```

## Some example code or error messages

```auto
Building wheels for collected packages: pyyaml
  Building wheel for pyyaml (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pyyaml (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      C:\Users\sfluc\AppData\Local\Temp\pip-build-env-roy_ihzo\overlay\Lib\site-packages\setuptools\_vendor\wheel\bdist_wheel.py:4: FutureWarning: The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.
        warn(
      C:\Users\sfluc\AppData\Local\Temp\pip-build-env-roy_ihzo\overlay\Lib\site-packages\setuptools\dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: MIT License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py

```

---

<div class="post-metadata">

**Author:** ![nicholasjohnson](https://avatars.discourse-cdn.com/v4/letter/n/8baadc/32.png) [@nicholasjohnson](https://discourse.getdbt.com/u/nicholasjohnson)\
**Post date:** [November 12, 2026, 9:00pm UTC](https://discourse.getdbt.com/t/installation-for-duckdb-failed/21066/2 "2026-11-12T21:00:28Z")

</div>

The failing step is building PyYAML from source, not dbt-duckdb itself, which usually means pip could not find a compatible prebuilt wheel for your Python version on Windows. Try a fresh venv on Python 3.11 or 3.12, upgrade pip, then install dbt-duckdb again. If you need the current Python version, run `pip install pyyaml --only-binary=:all:` to check wheel availability, and install a PyYAML version that publishes Windows wheels.
