I'm trying to install opencv using python2.7.
When I use brew install python. I got
Warning: python-2.7.11 already installed, it's just not linked
And then I run brew link python and brew install python again got
1 export PATH="/usr/local/mysql/bin:$PATH"
Warning: python-2.7.11 already installed
But which python still told me I'm using /usr/bin/python.
I changed my ~/.bash_profile to
1 export PATH="/usr/local/mysql/bin:$PATH"
2 #Setting PATH for Python 3.5
3 # The orginal version is saved in .bash_profile.pysave
4 PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
5 export PATH
6 # Homebrew
7 export PATH="/usr/local/bin:$PATH"
No thing happens. It seems that I should be using /usr/local/bin/python because opencv is installed by homebrew.
How to solve this?