I created my requirements.txt using the following command:
pipreqs . --force --ignore ".venv"
I used --force because the project has an existing, incomplete requirements.txt, which is how I found pipreqs in the first place.
I used --ignore ".venv" because i encountered an error related to this issue.
The requirements.txt now contains duplicates such as:
...
PyYAML==6.0.2
PyYAML==6.0.2
...
conflicting versions:
...
pywin32=310
pywin32==311
as well as wrong library names:
...
skimage==0.0
...
(should be scikit-image)
I am on windows, using python 3.12.
I created my requirements.txt using the following command:
pipreqs . --force --ignore ".venv"I used
--forcebecause the project has an existing, incomplete requirements.txt, which is how I found pipreqs in the first place.I used
--ignore ".venv"because i encountered an error related to this issue.The requirements.txt now contains duplicates such as:
...
PyYAML==6.0.2
PyYAML==6.0.2
...
conflicting versions:
...
pywin32=310
pywin32==311
as well as wrong library names:
...
skimage==0.0
...
(should be scikit-image)
I am on windows, using python 3.12.