Package installed and verified but ModuleNotFoundError when running app - M2
Opened this issue · 0 comments
maritaganta commented
I have created a .venv
with the following pip list
:
Package Version
----------------------- ---------
click 8.1.7
dlib 19.24.5
face-recognition 1.3.0
face_recognition_models 0.3.0
numpy 2.0.1
opencv-python 4.10.0.84
pillow 10.4.0
pip 24.0
setuptools 72.1.0
- Python version: Python 3.12.4
- Operating System: MacOS Sonoma 14.3 - M2 Chip
Description
I followed the following installation steps:
brew install cmake
brew install dlib
source .venv/bin/activate
pip install opencv-python
pip install face_recognition
I verified the installation with:
python
>>> import face_recognition
I didn't get any issues.
However, now that I am importing the library on my .py
file, I get import face_recognition ModuleNotFoundError: No module named 'face_recognition'
What I Did
I checked that I am in the correct environment and that I have no typos.
How is it possible to install and verify the package but then unable to find module?