Never mind, I realized I was using a bit of code way too old. I just needed to change the import statements to: import numpy.matrix import numpy.linalg Thanks for the help!