What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3

background

When I tried to install opneCV3 on my Mac to run PaintsChainer, I got an error, and when I looked it up, there was no Japanese article, so I'll leave it as a note.

version

Command that gives an error

brew install opencv3 --with-python3

...

Error: opencv3: Does not support building both Python 2 and 3 wrappers

Solution

Details: install opencv3 on mac for python 3.6

brew install opencv3 --with-python3 --without-python

I needed --without-python.

As you can see from the error content, you can only install it for either python or python3. This time I wanted to install it for use with python3, so I solved it with --without-python.

Recommended Posts

What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get the error RuntimeError: Python is not installed as a framework when trying to use matplitlib and pylab in Python 3.3
What to do if you get "The session could not be opened" when installing CentOS on VirtualBox
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get an error when trying to load mnist
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if you get the message "" ~ .pkg "is corrupted and cannot be opened" when installing wxPython on Mac OS X
What to do if Python does not switch from the System version in pyenv
What to do if you run python in IntelliJ and end with an error
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get a minus zero in Python
What to do when you get "I can't see the site !!!!"
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get angry if you don't have libxml / xmlversion.h when installing lxml on CentOS
What to do if the user name is changed and the pyenv library path does not pass
What to do if pyenv install does not proceed with an error
What to do if you get Could not fetch URL 443 with pip
What to do if you get `locale.Error: unsupported locale setting` when getting the day of the week from a date in Python
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if you get a Permission denied (public key) error when trying to pull on Github
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do when you get angry that libxml / xmlversion.h does not exist when you put lxml with pip
Example of what to do when the sample script does not work (OpenCV-Python)
What to do if you get a "No versions found" error in pipenv
What to do if you get angry with swapon failed: Operation not permitted
[Note] What to do if the Qt library conflicts between pyqt and opencv
[Python] What to check when you get a Unicode Decode Error in Django
What to do when the graph does not appear in jupyter (ipython) notebook
[EC2] What to do when selenium is stuck and processing does not proceed
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you are told "Import Error: cannot import name'HTTPSHandler'" when building a virtual environment using virtualenv
What to do if sys / cdefs.h does not exist
What to do when you can't bind CaboCha to Python
[Python] Type Error:'WebElement' object is not iterable What to do when an error occurs
What to do if you get an "unknown service" error from your gRPC server
What to do when python3 type venv does not work well on Raspberry Pi
What to do if the Microsoft Store opens even if you run python on Windows
What to do if the print command itself causes an error in Maya python
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if the progress bar is not displayed in tqdm of python
What to do when Python starts up in Anaconda does not come out unexpectedly
How to install and use pyenv, what to do if you can't switch python versions
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you get "coverage unknown" in Coveralls
What to do if you install openCV3 and make a symbolic link, but when you do "import cv2", "No module named'cv2'" appears
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
[Small story] What to do if "Error with child process: Building resource'awsToolkitSamLocalResource'" does not work when Lambda is locally executed by SAM from VS Code
What to do if you can't install pyaudio with pip #Python
What to do if you try to push to git hub and get "fatal: The current branch develop / feature / discussion has no upstream branch."
What to do if python says "fatal error:'stdio.h' file not found"
What to do when the jupyterlab extension settings are not reflected
What to do if you get an error saying c compiler cannot create executables in configure
What to do if Insecure Platform Warning appears when running Python