Skip to content Skip to sidebar Skip to footer

Requests Works Locally But Not Deployed On Heroku

This code works locally, but when I deploy it to Heroku, I get ModuleNotFoundError: No module named 'requests'. (Note: urllib.parse works fine — news_link prints.) import urll

Solution 1:

It looks like you forgot to include requests in the requirements.txt file, check if it is there and in case it is you can try opening the bash console using this answer indications and run a pip freeze to see if it actually is installed or not.


Post a Comment for "Requests Works Locally But Not Deployed On Heroku"