Missing requirement
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
I have a project that have numpy, pandas, sklearn imports when i run "pipreqs" command with --use-local and --debug options requirement.txt does not contain sklearn dependency.
Reproduction:
Os: windows 10
Debug output:
DEBUG: Found packages: {'sklearn', 'pandas', 'numpy'}
DEBUG: Found imports: numpy, pandas, scikit_learn
DEBUG: Getting package information ONLY from local installation.
DEBUG: Writing 2 requirements: numpy, pandas to .\requirements.txt
Contributor guide
Research direction
Start by reproducing the pipreqs command with --use-local and --debug on the reported imports, then trace the package-resolution path that handles sklearn and scikit_learn. Done means the generated requirements.txt includes the sklearn dependency alongside numpy and pandas.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, pandas, python, scikit-learn
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100