ModuleNotFoundError despite simple requirements.txt present

OK, I solved the problem:

  • The documentation first recommends to use pipenv and Pipfile for dependencies
  • But the next page says: “1. Put your app in a public GitHub repo (and make sure it has a requirements.txt!)”

I deleted my requirements.txt file and instead put the dependencies in Pipfile => it worked.

I think the documentation should be updated accordingly. (see also here for instance)

1 Like