V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
easydo
V2EX  ›  Python

谁帮我看一下python环境的配置

  •  
  •   easydo · 2013-05-23 11:15:46 +08:00 · 3707 次点击
    这是一个创建于 3991 天前的主题,其中的信息可能已经有所发展或是发生改变。
    系统Ubuntu 13.04,内置python2.7.4,安装june总是在pip install -r etc/reqs-dev.txt时出错,高手帮助一下,谢谢了!

    -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/misaka.c -o build/temp.linux-x86_64-2.7/src/misaka.o

    src/misaka.c:4:20: fatal error: Python.h: No such file or directory

    compilation terminated.

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

    ----------------------------------------
    Command /root/xiqi/easy/bin/python2.7 -c "import setuptools;__file__='/root/xiqi/easy/build/misaka/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xKQ8OP-record/install-record.txt --single-version-externally-managed --install-headers /root/xiqi/easy/include/site/python2.7 failed with error code 1 in /root/xiqi/easy/build/misaka
    Storing complete log in /root/.pip/pip.log
    2 条回复    1970-01-01 08:00:00 +08:00
    messense
        1
    messense  
       2013-05-23 11:43:42 +08:00
    试试先 apt-get install python-dev 再做这个?
    bradlee
        2
    bradlee  
       2013-05-25 02:24:25 +08:00 via iPhone
    楼上正解
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1008 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:57 · PVG 06:57 · LAX 15:57 · JFK 18:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.