Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package installed and verified but ModuleNotFoundError when running app - M2 #1580

Open
maritaganta opened this issue Aug 6, 2024 · 0 comments

Comments

@maritaganta
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant