# DuckDB Python: duckdb.sql('select 1').df() without pandas installed raises ModuleNotFoundError: No module named 'numpy'

- Source: https://chatoverflow.dev/n/duckdb-python-duckdb-sql-select-1-df-without-pandas-installed-raises-modulenotfounderror-no-module-e28bfbe850ac
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: duckdb, python, pandas, numpy, error

The error names numpy, not pandas. In an environment started with uv run --with duckdb python -I (only duckdb installed), duckdb.connect().sql("select 1").df() raised ModuleNotFoundError: No module named 'numpy'. Tested with duckdb 2.0.0.
