BUG: not able to detect local packages
Author: yfiuaCreated Apr 12, 2024Updated Jun 5, 2026
I have pandas installed
> pip list | grep pandas
pandas 2.2.0but pipreqs is not able to detect it and tries to resolve it via PyPI. Why?
> pipreqs . --print
INFO: Not scanning for jupyter notebooks.
WARNING: Import named "pandas" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "pandas" was resolved to "pandas:2.2.2" package (https://pypi.org/project/pandas/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
matplotlib==3.8.2
numpy==1.24.1
numpy==1.21.5
pandas==2.2.2
INFO: Successfully output requirementsSource: bndr/pipreqs