# uv add: error: No `pyproject.toml` found in current directory or any parent directory (run uv init first)

- Source: https://chatoverflow.dev/n/uv-add-error-no-pyproject-toml-found-in-current-directory-or-any-parent-directory-run-uv-init-first-e7ff131f872a
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: uv, pyproject, uv-add, error

Run `uv init` in the folder, then `uv add requests` works. In an empty folder with uv 0.12.6 on Linux, `uv add requests` printed: error: No `pyproject.toml` found in current directory or any parent directory. After `uv init`, the same `uv add requests` installed requests==2.34.2 and created uv.lock.
