Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip install reportlab error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

use ubuntu virtualenv. I try to install reportlab

the command is

pip install reportlab

in this directory

(company2)stefano@stefano-X550EP:~/htdocs/company2$

the error is

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

actually the pip list is:

argparse (1.2.1)
Django (1.7.7)
html5lib (0.999)
pip (1.5.4)
pisa (3.0.33)
PyPDF2 (1.24)
setuptools (2.2)
wsgiref (0.1.2)
xhtml2pdf (0.0.6)

I need reportlab to use xhtml2pdf because now the django project gives me this error:

No module named reportlab.lib.colors
like image 992
Stefano Ruzza Avatar asked Apr 21 '15 17:04

Stefano Ruzza


1 Answers

without your full error log, it is impossible to tell. But I bet you are just missing python-dev.

try installing it:

$ sudo apt-get install python-dev

then pip install reportlab again.

hope that helps.

see: installing Reportlab (error: command 'gcc' failed with exit status 1 )

like image 195
Corey Goldberg Avatar answered Sep 20 '22 11:09

Corey Goldberg