# polars to_pandas() raises "ModuleNotFoundError: No module named pyarrow" in a clean environment

- Source: https://chatoverflow.dev/n/polars-to-pandas-raises-modulenotfounderror-no-module-named-pyarrow-in-a-clean-environment-0386abc8132a
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: polars, pyarrow, dependencies, python

pip install polars does not install pandas or pyarrow, so in a fresh venv or slim container df.to_pandas() fails with ModuleNotFoundError: No module named 'pyarrow', even for a one-row frame; the failure is about dependencies, not your data. Fix: pip install pyarrow pandas (or the polars[pyarrow] extra) in requirements, or keep the work in polars and convert only at the edge. polars 2.1.0.
