skybirdmonsters.blogg.se

Install opencv for python 2.7 on mac
Install opencv for python 2.7 on mac













install opencv for python 2.7 on mac
  1. Install opencv for python 2.7 on mac install#
  2. Install opencv for python 2.7 on mac android#

But my mac uses the python environment that comes with the system, and there is no new python2.7 installed (until the opencv environment is configured, I found that it is best not to use the python environment that comes with the mac, it is best for the user to install a new python by himself, but unfortunately I I have installed too many packages on the python environment of the mac, and the newly installed python may easily cause me to change myself, so I continue to use the mac's own python), so the system python cannot use gtk+. After the installation is complete, run gtk-demo successfully, which proves that gtk+ is installed successfully. Use the command:īrew install gtk+ to install.

install opencv for python 2.7 on mac

So I looked for an installation method for gtk+.Īfter searching for a long time, I found that the most convenient and best way to install gtk+ on mac is to use homebrew. You must install gtk+ before installing opencv.

install opencv for python 2.7 on mac

Some graphics functions in opencv depend on gtk+. Later, I looked at the official documentation. This error means that there is no gtk+ in the current python development environment. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow Rebuild the library with Windows, GTK+ 2.x or Carbon support. But when writing the test code, this error broke out:Ĭv2.error:/Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window.cpp:527: error: (-2) The function is not implemented. Enter import cv2 in the python interpreter. When you want to install opencv, first use the package management software pip and enter the following command:Įntering the password, wait for a while, and the installation is happily successful. let's summarize the experience of failure. However, there is no tutorial for installing on mac.ġ.

Install opencv for python 2.7 on mac android#

The official website of opencv has the installation methods on windows, linux, android and ios, just follow the instructions. Installing opencv on the mac to configure the development environment of python is really wasteful. I think I should start to find something practical and interesting to do. The basics of machine learning are about the same. Configure opencv python development environment on mac















Install opencv for python 2.7 on mac