Python cannot find dateutil.relativedelta

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

    This looks like a problem of package installation to me. A troubleshooting list that comes to my mind:

    1. Verify you installed the package.
    2. If installed, verify that the files have been stored in the right directory (a directory accessible from your python interpreter (= in the PYTHONPATH, useful article here).
    3. Verify permission on those files.
    4. Restart your shell if you tried the import there.
    5. Reboot your computer (ouch... it's 10 years since I started using GNU/Linux, but I still suffer from the bad memories of Windows! ;)

提交回复
热议问题