“error: command 'x86_64-linux-gnu-gcc' failed with exit status 1” in virtualenv

后端 未结 9 1757
清酒与你
清酒与你 2020-12-29 22:18

Environment: Linux Mint 17 Cinnamon.

This error is displayed:

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

w

相关标签:
9条回答
  • 2020-12-29 22:30

    This can be a problem in the pip. To solve, try:

    sudo apt-get remove python-pip

    To install pip, securely download get-pip.py.

    https://bootstrap.pypa.io/get-pip.py

    sudo python get-pip.py

    0 讨论(0)
  • 2020-12-29 22:31

    Work for me :
    Just install python2.7-dev first
    sudo apt-get install python2.7-dev

    0 讨论(0)
  • 2020-12-29 22:32

    Easiest way is:

    sudo apt-get build-dep python-imaging
    

    and then

    pip install pillow
    
    0 讨论(0)
  • 2020-12-29 22:38

    This works for me, 12.04, python2.7.6 for package lxml

    sudo pip install libxml2 libxml2-dev libxslt1-dev
    sudo pip install lxml
    
    0 讨论(0)
  • 2020-12-29 22:40

    The cffi library needs libffi-dev:

    sudo apt-get install libffi libffi-dev
    
    0 讨论(0)
  • 2020-12-29 22:41

    In Ubuntu 16.04.1 this worked for me:

    sudo apt-get install libxml2-dev libxslt1-dev python-dev
    
    0 讨论(0)
提交回复
热议问题