WARNING: Import named "scipy" not found locally. Trying to resolve it at the PyPI server.
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
All the packages are installed locally. But there are warnings! The resolved packages' versions are not the same as my locally installed. Need help! Thank you!
```
INFO: Not scanning for jupyter notebooks.
WARNING: Import named "lief" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "lief" was resolved to "lief:0.15.1" package (https://pypi.org/project/lief/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "lightgbm" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "lightgbm" was resolved to "lightgbm:4.5.0" package (https://pypi.org/project/lightgbm/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "matplotlib" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "matplotlib" was resolved to "matplotlib:3.9.2" package (https://pypi.org/project/matplotlib/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "numpy" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "numpy" was resolved to "numpy:2.1.2" package (https://pypi.org/project/numpy/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
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.3" package (https://pypi.org/project/pandas/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "scikit_learn" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "scikit_learn" was resolved to "scikit-learn:1.5.2" package (https://pypi.org/project/scikit-learn/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "scipy" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "scipy" was resolved to "scipy:1.14.1" package (https://pypi.org/project/scipy/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "seaborn" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "seaborn" was resolved to "seaborn:0.13.2" package (https://pypi.org/project/seaborn/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "xgboost" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "xgboost" was resolved to "xgboost:2.1.2" package (https://pypi.org/project/xgboost/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
INFO: Successfully saved requirements file in .\requirements.txt
```
Contributor guide
Research direction
Start with the generated requirements.txt and compare its resolved versions with the locally installed packages named in the warning log. Trace how pipreqs handles imports that it cannot find locally, then reproduce the warnings and determine what behavior would count as resolving the local packages correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, numpy, pandas, python, scikit-learn
- Domain
- backend, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100