Forums

Unable to find modules

I am getting 2 different errors. One on running the wsgi file which gives - no module named 'gspread'; and one on trying to run the app by opening the site, which gives - no module named 'pandas._config'.

I am using a virtual env and checked for all the packages. Everything is present there. The app is working fine locally. Why is it unable to find modules? Please help.

If your code is not able to find the modules that you have installed in your virtualenv, then you are probably not activating your virtualenv before running your code. If you're getting the errors in a web app, then you need to configure the web app to use your virtualenv.