Python cannot find dateutil.relativedelta

前端 未结 4 985
抹茶落季
抹茶落季 2021-02-05 01:57

I am trying to run a program using paster serve, but I keep getting the error:

ImportError: No module named dateutil.relativedelta

4条回答
  •  执笔经年
    2021-02-05 02:12

    I had a similar issue but for a simpler reason. My fresh virtualenv simply didn't have dateutil installed and I didn't know the Python package name. I tried pip install dateutil, which obviously didn't work since the package name was incorrect. Running pip install python-dateutil instead worked (without resorting to sudo).

提交回复
热议问题