推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
onyourroad
V2EX  ›  Python

求助: vagrant+virtualbox , django 的项目执行 pip install 出现“error: command 'x86_64- Linux -gnu-gcc' failed with exit status 1”

  •  
  •   onyourroad · Apr 26, 2017 · 2812 views
    This topic created in 3443 days ago, the information mentioned may be changed or developed.

    如题,有一个 djando 的项目,需要使用 vagrant+virtualbox 开发,在 vagrant ssh 后,在执行:
    pip install -r requirements.txt
    时出现了:
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ”错误,
    我的解决:
    sudo apt-get install libxml2-dev libxslt-dev python-dev (安装成功)
    sudo apt-get build-dep python3-lxml(命令无效)
    结果都没有效果,一直出现题目中的错误,各位有遇见这个问题的吗?求助。

    4 replies  •  2017-04-27 16:04:03 +08:00
    rogerchen
        1
    rogerchen  
       Apr 26, 2017 via Android
    贴完整错误 log
    onyourroad
        2
    onyourroad  
    OP
       Apr 26, 2017
    @rogerchen 算了,弄了好久,也没出来,直接删除了重新试一下,不知到会不会遇到同样的问题。。
    julyclyde
        3
    julyclyde  
       Apr 26, 2017
    wellhome
        4
    wellhome  
       Apr 27, 2017 via iPhone
    把错误日志上下文都贴一下,应该是少.h 文件造成的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5155 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 02:03 · PVG 10:03 · LAX 19:03 · JFK 22:03
    ♥ Do have faith in what you're doing.