python: No module named xhtml2pdf.pisa

Cuando tenemos este error, lo solucionamos con cualquiera de los siguiente comandos:

apt-get install python-pisa
apt-get install python-pip
pip install xhtml2pdf

En el caso de que el comando “pip install xhtml2pdf” me de este error:

Command /usr/bin/python -c "import setuptools;__file__='/home/computos/build/Pillow/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-sxLR6S-record/install-record.txt failed with error code 1 in /home/computos/build/Pillow
 
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 250, in run
    requirement_set.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1133, in install
    requirement.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 577, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/home/computos/build/Pillow/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-sxLR6S-record/install-record.txt failed with error code 1 in /home/computos/build/Pillow

la solución es:

apt-get install libjpeg-dev
Publicado en Programación, Python, Terminal, web2py

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

*

Categorías

diciembre 2015
L M X J V S D
« Nov   Ene »
 123456
78910111213
14151617181920
21222324252627
28293031