https-deeplearning-ai / machine-learning-engineering-for-production-public

Public repo for DeepLearning.AI MLEP Specialization
Apache License 2.0
1.85k stars 2.37k forks source link

Building wheel for opencv-python-headless error #81

Closed dzzzzdy closed 1 year ago

dzzzzdy commented 1 year ago

Hi, I got this error and can't find a solution when I installed the required packages. Mac Pro intel ERROR: Failed building wheel for opencv-python ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects

Isaakkamau commented 1 year ago

@dzzzzdy try pip install --upgrade pip setuptools wheel then pip install opencv-python if not try the other solutions stated here at Stackoverflow

andres-zartab commented 1 year ago

Hi @dzzzzdy were you able to solve this?

btw, thanks for helping out learners @Isaakkamau 😄

dzzzzdy commented 1 year ago

@dzzzzdy try pip install --upgrade pip setuptools wheel then pip install opencv-python if not try the other solutions stated here at Stackoverflow

Thanks for your help. I can install it on my laptop, even though there is still an import error. But I don't know why it doesn't work in the virtual environment. I appreciate your help

andres-zartab commented 1 year ago

@dzzzzdy are you using python 3.8 within the virtualenv? If the error keeps happening after upgrading setuptools and wheel I would recommend trying out the Docker method. Also consider joining our community where our mentors and team will help you. You can also find more information on our community in this Reading Item within Coursera.

dzzzzdy commented 1 year ago

@dzzzzdy are you using python 3.8 within the virtualenv? If the error keeps happening after upgrading setuptools and wheel I would recommend trying out the Docker method. Also consider joining our community where our mentors and team will help you. You can also find more information on our community in this Reading Item within Coursera.

@dzzzzdy are you using python 3.8 within the virtualenv? If the error keeps happening after upgrading setuptools and wheel I would recommend trying out the Docker method. Also consider joining our community where our mentors and team will help you. You can also find more information on our community in this Reading Item within Coursera.

Thank you for your suggestions!