Thursday, May 9, 2013

QuTiP Now on MacPorts

On the macintosh platform, one of the possible installation methods for QuTiP has always been via MacPorts.  However, until recently there was no way of directly installing QuTiP from inside of MacPorts itself.  Thanks to the work by Frank Schima of MacPorts, QuTiP and all of its dependencies can be easily installed, after installing MacPorts, using a single line of code in the terminal!  Here is how you do it:

  1. In order to install MacPorts, you need to have the Apple XCode Developer Tools installed on your machine.  This can be done from inside the Apple App Store.
  2. Next, run Xcode and go to Preferences->Downloads and install the "Command Line Tools"
  3. Download the MacPorts package and install the package.
  4. To install QuTiP, in the terminal type: sudo port install py27-qutip
Thats it!  All of the required packages are downloaded, compiled, and installed.  It will take several tens of minutes to finish, but that is what wine is for.