 So, I am running in a condo version of Python and the iPython notebook on this Mac computer of mine and I've always wanted to include the lifelines package or library that is available to do Captain Mayer survival curves. And it's always been a bit of a problem in as much as there seems to be an outstanding 4 train libraries when you try and install this. So this is how to go about correcting that. First of all you have to have Xcode installed. So on the app store just install Xcode. A good page to visit then is the following. We see the HPC.sourceforge.net and that's high performance computing for Mac OS and there's your little recipe as to how to do this. First thing to do though is at the bottom here we can see Xcode select install. Run that first from a terminal window and you can go ahead and do that command line install just of this command line tool for Xcode which will have to happen. The next thing to do is to download one of these. Now the GCC includes the G4 train so you don't have to do that although Xcode would have this. Just do this. So download the newest version here, download, click it and it will download. Once you've done that open up terminal. Open up your terminal which I've done and then CD download so CD space capital D download here because by default that is where this file would have been downloaded and this is what you type in guns of GCC and then there you would put in the name of this file with the tarball.gz extension there. So exactly what was downloaded you would type in there. Once that is done you type the following. Now see that the GCC is gone so be very careful what you type there and that is space hyphen c forward slash if to include that forward slash. That is then going to install this G4 train compiler for you. The only thing you need now to do is include it in your system path to do that. This is the easiest way. You see the address up here www.geo.brown.edu, forward slash computing, forward slash Mac, forward slash Mac, forward train and this is what you're going to type in so wherever you are in the terminal you're going to type in super user do space vi the vi editor forward slash etc forward slash bash RC and just click around a bit because it's a bit difficult when this opens in the browser but somewhere along the line you can start to start typing export path equals dollar path colon forward slash. Just type that in so that will add this G4 train now to get out of that is a bit tricky. Hit the escape key and that should save and then you can close the command line terminal. Once you open terminal again you can type in which G4 train and it will actually show that it is where it is downloaded. So now you have the Fortran libraries installed you can now actually install lifelines. So even though on GitHub lifelines the developers would say that you only need NumPy, SciPy etc that's not true you actually do need the G4 train that's easy enough to do on Linux but more cumbersome on the Mac so lifelines is not part of the Anaconda list of packages so first of all you are going to have to say super user do easy install or whatever installation you want to do python-pip or just look on the website how to install on your version of Mac how to install pip and the python packages manager there and then you can say pip install lifelines now the installation will happen you won't get any errors that there's missing G4 train libraries and you can use lifelines which is a beautiful package software library package for python really nice piece of software to use to do your Kaplan Maya survival curves.