So basically I’m deploying this thing to streamlit which calculates the BMI using a dataset and it uses numpy, and so to use the dlib library I have had to use conda, and therefore the environment.yml file, but to use opencv I have had to install pip through conda and install opencv through there. From what I understand numpy and pandas are already installed through streamlit, so no need to specify them, and no need to specify streamlit either in the environment.yml, so my environment.yml file looks like this:
name: streamlit-env
channels:
- conda-forge
dependencies:
- python=3.10
- scikit-learn=1.2.2
- imutils=0.5.4
- joblib=1.2.0
- setuptools>=45.0.0
- dlib=19.24.0
- pip:
- opencv-python-headless==4.7.0.72
but when I deploy the app and then upload an image which is then to be processed, the error pops up “no module named numpy._core”
Any help would be much appreciated.