Pipreqs tries to give me a library not installed on my system
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
I deleted my requirements.txt file just to make sure that a new file was created. I run `pipreqs .` I get the following
bokeh==2.4.2
dm_sonnet==2.0.0
matplotlib==3.1.2
numpy==1.19.5
pandas==1.3.5
pyproj==3.1.0
sonnet==0.1.6
tensorflow==2.6.0
tensorflow_probability==0.13.0
tqdm==4.62.3
I do have dm_sonnet installed but not sonnet. I am wondering why and how sonnet got picked up. When I do a pip freeze, it is not there
Contributor guide
Research direction
Start by reproducing the issue with `pipreqs .` and compare the generated requirements.txt with `pip freeze`. Trace how the tool maps the reported `dm_sonnet` import to package names. Done means the generated file includes the installed dependency without adding the uninstalled `sonnet` package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100