Pillow installation error: command 'gcc' failed with exit status 1

前端 未结 6 1376
迷失自我
迷失自我 2020-12-31 05:39

I am trying to setup my Django variant (Wagtail) but have problems installing the required Pillow.

Background: Am running Python 2.6.6, in virtua

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 06:30

    I had a similar problem (gcc failed, but no mention of permissions), but it was dependencies that were my problem. By the way, my task was to install Pillow on a raspberry pi, which is why those dev libraries were necessary. They may not be necessary for you. It was the python-imaging command that did the trick most, I think. Here's what I did:

    # Add the deb-src for each deb in /etc/apt/sources list
    sudo apt-get update
    sudo apt-get install python2.7-dev tk8.5 tcl8.5 tk8.5-dev tcl8.5-dev
    sudo apt-get build-dep python-imaging --fix-missing
    sudo pip install Pillow
    

    Sources: https://github.com/python-imaging/Pillow/issues/322 http://forums.getpebble.com/discussion/8490/ubuntu-install-problem-when-it-comes-to-pip https://unix.stackexchange.com/questions/105265/install-pil-pillow-via-pip-in-debian-testing-jessie

提交回复
热议问题