bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.64k stars 394 forks source link

Import named "flib" not found locally. Trying to resolve it at the PyPI server. #465

Open fred-yu-2013 opened 4 days ago

fred-yu-2013 commented 4 days ago

I have a project with my own lib flib. I've already add lib flib to python by set envs:

export PYTHONNOUSERSITE=0
export PYTHONUSERBASE=/Users/fred/Fred/workspace/python/fred-py-app3

fred-py-app3 is my project root path.

I get the warning:

WARNING: Import named "flib" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "flib" was resolved to "flib:0.9.2" package (https://pypi.org/project/flib/).
itanfeng commented 2 days ago

Same problem. Need help! 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