I am using python 2.7 in Mac OS X (10.7).
I have been trying to install OpenCV, but to no avail. In one attempt to get OpenCV to install properly I tried the MacPorts version of OpenCV, and I switched the python link to the MacPorts version using the command
sudo port select --set python. However, I really would like to keep the
python command to link to
/usr/bin/python instead of its current link of
By the way, why are the commands shown below output different results?
Unknown:~ jake$ which python /opt/local/bin/python Unknown:~ jake$ whereis python
doesn't port select give you some other options?
Thank you for the suggestion.
$ port select python Available versions for python: none python25-apple python26-apple python27 (active) python27-apple $ port select python27-apple Warning: Unable to get active selected version: The specified group 'python27-apple' does not exist. Error: The 'list' command failed: The specified group 'python27-apple' does not exist.
I wasn't using the apple version (I believe apple only provided 2.6). However, I got the python that I was previously using from python.org. So, I am not sure what command with
port select python I am supposed to use to switch to that version.
slhck for you help and suggestions.