Heroku Could not generate requirement for distribution -lotly 2.7.0 Heroku Could not generate requirement for distribution -lotly 2.7.0 heroku heroku

Heroku Could not generate requirement for distribution -lotly 2.7.0


You can solve this error by deleting this module from the site-packages directory. from your question above, it looks like the module is present in c:\users\xxx\appdata\local\programs\python\python37-32\lib\site-packages .

you can do a sanity check by using pip freeze .


I was getting the same error while I was trying to do "pip freeze > requirements.txt"

Could not generate requirement for distribution -eportlab3.5 ....

There should be a corrupt file on the site-packages folder similar to '~eportlab-3.5.50.dist-info' OR '~eportlab'. Delete it manually and run the same command. It should work.