bndr / bndr/pipreqs

Missing requirement

Open
#283 1 comment 2 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.