I am running pip freeze
on a python project, it shows string VERSION other than numberical version and it fails the package installation, the warning message is:
weasyprint 43 has requirement cairocffi>=0.9.0, but you'll have cairocffi file-.cairocffi-VERSION which is incompatible.
cairocffi===file-.cairocffi-VERSION
cairoccffi is a dependency of Weasyprint which i use in my project and weasypring version is correct:
WeasyPrint==43
I tried using pipreqs
generates requirements.txt, it didn't show cairocffi package but the package installation fails with the same error.
I checked site-packages folder, it contains
cairocffi-file_.cairocffi_VERSION.dist-info/
which cause the issue.
Can someone help?