Hi,
I'm trying to code in Python 2.7 on OS X Snow Leopard. When I tried to get libraries like opencv and pyqt4, I faced so many problems. First, my system would mix up between my Python 2.7 installation and the default one that comes with OS X.
Also, I faced problems importing opencv because Python wouldn't recognize it. I solved the problem later by pasting some code that exported a variable to PYTHONPATH, but I didn't understand what really happened.
Now, I'm facing similar problems with pyqt4 whenever I try to execute the command pyuic4 from the terminal [it says "command not found"]
I tried installing via Macports but I still got the same problems. I'm pretty sure it is because I need to modify PYTHONPATH and/or the system PATH in .bash_profile, but I'm clueless. I have no idea what to do because I don't understand what these things are about.
Can you please help me understand how to get things right?
I'm trying to code in Python 2.7 on OS X Snow Leopard. When I tried to get libraries like opencv and pyqt4, I faced so many problems. First, my system would mix up between my Python 2.7 installation and the default one that comes with OS X.
Also, I faced problems importing opencv because Python wouldn't recognize it. I solved the problem later by pasting some code that exported a variable to PYTHONPATH, but I didn't understand what really happened.
Now, I'm facing similar problems with pyqt4 whenever I try to execute the command pyuic4 from the terminal [it says "command not found"]
I tried installing via Macports but I still got the same problems. I'm pretty sure it is because I need to modify PYTHONPATH and/or the system PATH in .bash_profile, but I'm clueless. I have no idea what to do because I don't understand what these things are about.
Can you please help me understand how to get things right?