Installation Mountain Lion - syue99/Lab_control GitHub Wiki

We will be using MacPorts to install python and python libraries. This provides a working environment separate from the system python.

Then run the following commands in terminal

sudo port selfupdate
sudo port install python27
sudo port select --set python python27

Install pylabrad

SVN Checkout

Gets the latest source code

sudo port install py27-twisted
cd ~/Downloads
svn co https://svn.code.sf.net/p/pylabrad/svn/trunk pylabrad
cd pylabrad
sudo python setup.py install

Additional Packages

In addition to the basic pylabrad installation, the user may want to install scientific processing or graphical python libraries, or drivers.

numpy

sudo port install py27-numpy

matplotlib

sudo port install py27-matplotlib

scipy

sudo port install py27-scipy

qutip

Follow instructions: http://code.google.com/p/qutip/

pyserial

sudo port install py27-serial

PyQt

sudo port install py27-pyqt4

Pip

sudo port install py27-pip

treedict

sudo pip-2.7 install treedict