pythondjangoxhtml2pdfc9.io

How to install xhtml2pdf in Cloud9 using python 2.7?


I have tried to install xhtml2pdf for render pdf from html.I have followed the instructions bellow.

Installation

For python2.7:

pip install xhtml2pdf

To obtain the latest experimental version that has Python 3 support, please use a prerelease:

pip install --pre xhtml2pdf

but in this process , C9 shows me this error. How can I solve this problem?

enter image description here

Thanks


Solution

  • This issue is solved by updating six package. I've uninstall the six package and again install the update one.

    sudo pip install six
    

    or

    sudo pip install six -U