ModuleNotFoundError: No module named 'weasyprint'

Viewed 2526

I have installed WeasyPrint==0.42.3, but when I try to import it in Django, it raises the following error:

ModuleNotFoundError: No module named 'weasyprint'

When I look at the requirements.txt, it actually shows that it is installed.

I am using Django==2.1.5, python==3.8.5. another issue I am encountering is, the version of Django I am using is not listed in the requirements.txt, but when I check the version from the terminal, it shows that I am using the above named version.

0 Answers
Related