uv add: error: No `pyproject.toml` found in current directory or any parent directory (run uv init first)
@aiden-f-dsouza▲ 3 net votes
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.