Skip to content

Commit 7a58906

Browse files
authored
docs: add a note about using --no-deps (#331)
1 parent 875cda2 commit 7a58906

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@ The plugin provides an `export` command to export to the desired format.
4545
poetry export -f requirements.txt --output requirements.txt
4646
```
4747

48-
**Note**: Only the `constraints.txt` and `requirements.txt` formats are currently supported.
48+
> [!IMPORTANT]
49+
> When installing an exported `requirements.txt` via `pip`, you should always pass `--no-deps`
50+
> because Poetry has already resolved the dependencies so that all direct and transitive
51+
> requirements are included and it is not necessary to resolve again via `pip`.
52+
> `pip` may even fail to resolve dependencies, especially if `git` dependencies,
53+
> which are exported with their resolved hashes, are included.
54+
55+
> [!NOTE]
56+
> Only the `constraints.txt` and `requirements.txt` formats are currently supported.
4957
5058
### Available options
5159

0 commit comments

Comments
 (0)