pipreqs icon indicating copy to clipboard operation
pipreqs copied to clipboard

WARNING: Import named "scipy" not found locally. Trying to resolve it at the PyPI server.

Open itanfeng opened this issue 1 year ago • 2 comments

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

itanfeng avatar Oct 29 '24 08:10 itanfeng

这应该是因为pipreqs使用了映射名来找环境内的版本信息, 可以试试看我基于pipreqs的map新发布的库showmereqs, 修复了这个问题, 看看能不能帮到你. https://github.com/SunandRiver/showmereqs

SunandRiver avatar Dec 18 '24 05:12 SunandRiver

Yes, I see this behavior too! Do you have an idea in the code why this happens?

jonas-eschle avatar Apr 07 '25 16:04 jonas-eschle