#38560: port install opencv +python27 fails ---------------------------+-------------------------------- Reporter: johnsankey@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: Port: opencv | ---------------------------+-------------------------------- Comment (by larryv@…): Replying to [comment:8 johnsankey@…]:
So it seems I'm getting Apple's Python with 'set python python27', not the MacPorts Python.
I assume you mean `port select`. `port set` is a shortcut for `port setrequested`. What is the output of `port select --list python`? Can you import the OpenCV module if you start the interpreter using `/opt/local/bin/python2.7`?
What directory is MacPorts' Python27 in? (I assume specifying directory in set will work.)
No, that is not how `port select` works.
BTW, I've been double-clicking on a .py file - it brings up Idle and then (Apple) python. Is any change needed in additional to specifying path in set for this to get Macports' python27?
I don’t know which application is your default for `.py` files, but you can select a different `Build Applet.app` or `IDLE.app` or `Python Launcher.app` through Finder’s Get Info panel, as usual. -- Ticket URL: <https://trac.macports.org/ticket/38560#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X