Created
August 11, 2013 17:48
-
-
Save khajer/6206108 to your computer and use it in GitHub Desktop.
install opencv on mac.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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