Import of factorial fails in SCFpyr_PyTrorch.py on call: from scipy.misc import factorial Should be fixed by change noted here: https://github.com/nipy/nipy/issues/453#issuecomment-521820075