Module Not Found Error: No Module named 'nltk'

I am trying to deploy my app but I keep on getting this dreaded message No module named ‘nltk’ found.

  1. I have correct requirements.txt file with all the packages listed
  2. I am deploying using github repo which is well structured
  3. I tried deleting and redeploying but to no avail

This issue is happening quite reguarly with me and I am really worried about the deployments that I am trying to work on.

Any help will be highly appreciated.

Thanks and Regards,
Sunil

Please share a link to your public github repo.

There are two possible reasons why the package is not installed:

  • There was no attempt to install it.
  • There was an attempt to install it but it failed.

The logs should tell you what the case is.