Import named "flib" not found locally. Trying to resolve it at the PyPI server.
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/).
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
I encountered the same problem. I am using Python 3.11.11, matplotlib 3.9.3, and pillow 10.4.0.
My import is like this:
import logging
import os
import matplotlib.patches as patches
import matplotlib.font_manager as fm
import matplotlib.pyplot as plt
from datetime import datetime
from PIL import Image
from fontTools.pens.basePen import BasePen
from fontTools.ttLib import TTFont
from matplotlib.path import Path
And I received these messages:
INFO: Not scanning for jupyter notebooks.
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.3" package (https://pypi.org/project/matplotlib/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
WARNING: Import named "Pillow" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "Pillow" was resolved to "pillow:11.0.0" package (https://pypi.org/project/pillow/).
Please, verify manually the final list of requirements.txt to avoid possible dependency confusions.
INFO: Successfully saved requirements file in .\requirements.txt