Skip to content

Instantly share code, notes, and snippets.

@khajer
Created August 11, 2013 17:48
Show Gist options
  • Select an option

  • Save khajer/6206108 to your computer and use it in GitHub Desktop.

Select an option

Save khajer/6206108 to your computer and use it in GitHub Desktop.
install opencv on mac.
sudo port install python27
sudo port select --set python python27
sudo port install py27-numpy
sudo port install opencv +python27
# add export file
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit ~/.bash_profile
#or
open -t ~/.bash_profile
# and add the line:
// ----
export PYTHONPATH=/opt/local/var/macports/software/opencv/2.2.0_0+python27/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages:$PYTHONPATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment