Setting up Python on Mac OS X

Here are a few commands to get started quickly with Python on the Mac, installing packages relevant for computer vision and machine learning tools.

sudo port install py27-matplotlib py27-numpy py27-scipy py27-ipython

Install OpenCV with qt4, tbb, python27 support

sudo port install opencv +tbb +python27 +qt4

When installing python packages that are not in opencv use:

python install --user

When executing python files and you wish to regain the prompt to peer into the stack variables pause execution, place this in the file where you want to stop execution.

import code



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s