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

problems with sudo pip3 install opencv-contrib-python #5

Open
carlosarancon opened this issue Apr 2, 2021 · 7 comments
Open

problems with sudo pip3 install opencv-contrib-python #5

carlosarancon opened this issue Apr 2, 2021 · 7 comments

Comments

@carlosarancon
Copy link

Hello,

Im following this project for an university project and as I said in the title, im having troubles with that instruction. It is stucked in "running setup.py bdist.wheel for opencv-contrib-python..." for more than an hour. I hope anyone can help me.

Thank you for your time!

@Zodeh
Copy link

Zodeh commented Apr 3, 2021

I ran into the same issue when I ran "sudo pip3 install opencv-contrib-python". I ended up skipping that install and it looks like it ended up not being needed.

@scriven42
Copy link

In my experience, an hour isn't necessarily long enough to wait for that command to finish depending on your hardware.

The OpenCV libraries are massive. I've even had to temporarily increase my swap space to 2GB to make that command work, and on a zero it took a very long time, IIRC almost a day.

@carlosarancon
Copy link
Author

I handle to install it, but I don't remember how, try it running without "sudo" or if not, with "pip" instead with "pip3"

@janetckm
Copy link

janetckm commented Apr 9, 2021

I handle to install it, but I don't remember how, try it running without "sudo" or if not, with "pip" instead with "pip3"

without "sudo" works for me
pip3 install opencv-contrib-python

@fjolublar
Copy link

a better way to install libraries is to use: python3 -m pip install

@louisemorris-123
Copy link

Hi everyone,

I'm new to Raspberry Pi and I'm following these instructions for a university project. I am also unable to install Python using the code pip3 install opencv-contrib-python
(as included in the instructions).

However, I get the following error message in red
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-j01sh4o2 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools wheel scikit-build cmake pip "numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.19.3; python_version>='3.6' and sys_platform == 'linux' and platform_machine == 'aarch64'" "numpy==1.21.0; python_version>='3.6' and sys_platform == 'darwin' and platform_machine == 'arm64'" "numpy==1.14.5; python_version=='3.7' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.17.3; python_version=='3.8' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.19.3; python_version>='3.9' and platform_machine != 'aarch64' and platform_machine != 'arm64'"" failed with error code 1 in None

I've tried all your suggestions above but it still won't install. This error seems to be stopping all the other instructions afterwards from working because the main.py document afterwards wont run and also results in an error.

Any help would be most welcome!
Many thanks,
Louise

@kpt93
Copy link

kpt93 commented Jul 26, 2021

Hi, you could possibly try the raspbian version of OpenCV. I believe the latest version of OpenCV are not compatible with RPI

sudo apt-get opencv-contrib-python

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

7 participants