Zet - How do I fix the uv error “project table not found”?
How do I fix the uv error “project table not found”?
Option 1: Add a Minimal [project] Table
The simplest solution is to add a minimal [project] table to the existing pyproject.toml:
[project]
name = "your-project-name"
version = "0.1.0"
This satisfies uv’s requirements while maintaining compatibility with existing tool configurations.
Option 2: Use the --no-project Flag
For commands like uv run, add the --no-project flag to tell uv to ignore project detection:
uv run --no-project python script.py
This flag instructs uv to operate in non-project mode, similar to how it would work if no pyproject.toml was present.
#python #uv