0

I was trying to load the Lifetimes Module on my Linux AMI server. I installed it just fine and everything seemed to work with no error.

However when I went to use it I got the error below. (tried to do a few things that I thought would fix it but nothing has worked)

import lifetimes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "lifetimes/__init__.py", line 1, in <module>
    from .estimation import BetaGeoFitter, ParetoNBDFitter, GammaGammaFitter
  File "lifetimes/estimation.py", line 2, in <module>
    from collections import OrderedDict
ImportError: cannot import name OrderedDict
Paul Rooney
  • 20,879
  • 9
  • 40
  • 61
ddewber
  • 47
  • 1
  • 5

1 Answers1

0

http://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux

This is what worked for me but I did have to re-install the modules that were on 2.6 into 2.7

ddewber
  • 47
  • 1
  • 5