Python cannot find dateutil.relativedelta

前端 未结 4 988
抹茶落季
抹茶落季 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:29

    I also ran into this issue. The simple solution I ended up using was to add --upgrade to the end of the command. This forced it to install it even though Python thought it was installed. This resolved the issue.

    So if you have this issue, try the following:

    sudo pip install python-dateutil --upgrade
    

    It can't possibly hurt anything, so there is no harm in just forcing it to be reinstalled.

提交回复
热议问题