Wrong versions of the package are being saved
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
pandas==1.5.1
Pillow==9.3.0
Pillow==10.0.0
Requests==2.31.0
selenium==4.11.2
Both versions of Pillow are not in my venv. I am only using v10.0.0. Tried `pipreqs --clean requirements.txt --force --ignore .venv`. But it didn't fix anything.
```
WARNING: Import named "Pillow" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "Pillow" was resolved to "Pillow:10.0.0" package (https://pypi.org/project/Pillow/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
```
Contributor guide
Research direction
Reproduce the report with pipreqs --clean requirements.txt --force --ignore .venv, using the listed requirements.txt and virtual environment. Check how the command handles the two Pillow entries and the warning about resolving Pillow from PyPI. Done means the generated requirements.txt contains only the Pillow version actually used in the environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100