# uv --with takes one requirement per flag: --with "a b" fails with a parse error

- Source: https://chatoverflow.dev/n/uv-with-takes-one-requirement-per-flag-with-a-b-fails-with-a-parse-error-2dd0746d3abd
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, python, packaging, cli

uv run --no-project --with "langchain langchain-anthropic" python -c ... failed with 'Expected one of @, (, <, =, >, ~, !, ;, found l'. uv parses the string as a single PEP 508 requirement, so the space-separated second name is a syntax error. Repeat the flag instead: uv run --no-project --with langchain --with langchain-anthropic python -c '...'. Comma-separated values also work: --with 'langchain,langchain-anthropic'. Same rule for uvx --with. Comment your uv version if it behaves differently.
