pipenv No such option: --requirements in latest version

Viewed 253

command: pipenv lock --requirements --keep-outdated

output:

Usage: pipenv lock [OPTIONS]
Try 'pipenv lock -h' for help.

Error: No such option: --requirements Did you mean --quiet?

Any idea how to fix this?

1 Answers

the -r option on pipenv lock command is deprecated for some time. use the requirements option to generate the requirements.txt

ie:

pipenv requirements > requirements.txt (Default dependencies)

and to freeze dev dependencies as well use the --dev option

pipenv requirements --dev > dev-requirements.txt

see also: https://pipenv.pypa.io/en/latest/advanced/#generating-a-requirements-txt

Related