Re: [mezzanine-users] Error encountered during pip install

111 views
Skip to first unread message

Stephen McDonald

unread,
Nov 7, 2012, 11:24:32 PM11/7/12
to mezzani...@googlegroups.com
Have a look here at Mezzanine's bundled fabfile where it installs all the system-level packages required:


You'll see python-dev which a lack of is what's causing the current error you're getting - from that list you'll probably also want libjpeg-dev too.

On Thu, Nov 8, 2012 at 3:19 PM, Andy Blake <andyb...@gmail.com> wrote:
Hi, I am attempting a fresh Mezzanine install on Ubuntu 12.04.1 LTS using pip via sudo:
pip install -U mezzanine

It gets pretty far along, but somewhere after or during the Pillow installation, it encounters an error:

    running build_ext
    building '_imaging' extension
    creating build/temp.linux-x86_64-2.7/libImaging
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_LIBZ -IlibImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu -c _imaging.c -o build/temp.linux-x86_64-2.7/_imaging.o
    _imaging.c:75:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

Any help would be appreciated.

Thanks,
Andy



--
Stephen McDonald
http://jupo.org

Andy Blake

unread,
Nov 8, 2012, 8:23:15 AM11/8/12
to mezzani...@googlegroups.com, st...@jupo.org
That took care of it, thanks!
Reply all
Reply to author
Forward
0 new messages