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

2013-05-23 11:15:46 +08:00
 easydo
系统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
3713 次点击
所在节点    Python
2 条回复
messense
2013-05-23 11:43:42 +08:00
试试先 apt-get install python-dev 再做这个?
bradlee
2013-05-25 02:24:25 +08:00
楼上正解

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/69883

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX