Twisted编译在ubuntu14.04中失败

2024-06-08 23:14:22 发布

您现在位置:Python中文网/ 问答频道 /正文

I am trying to install Crossbar in my ubuntu 14.04.
I installed the dependencies as per the instruction here.
When I am trying to install cross the twisted installation fails.
I am having python 2.7.6. I installed all the python-devl packages and all are up to date. I am getting the below error when I execute "pip install crossbar".

copying twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c -> build/lib.linux-i686-2.7/twisted/internet/iocpreactor/iocpsupport
copying twisted/python/sendmsg.c -> build/lib.linux-i686-2.7/twisted/python
copying twisted/test/raiser.c -> build/lib.linux-i686-2.7/twisted/test
running build_ext
cc -O2 -fPIC -Wimplicit -I/usr/lib/pypy/include -c conftest.c -o conftest.o
building 'twisted.runner.portmap' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/twisted
creating build/temp.linux-i686-2.7/twisted/runner
cc -O2 -fPIC -Wimplicit -I/usr/lib/pypy/include -c twisted/runner/portmap.c -o build/temp.linux-i686-2.7/twisted/runner/portmap.o
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory
include <Python.h>
compilation terminated.error: command 'cc' failed with exit status 1

Tags: installthetobuildlinuxlibtwistederror
1条回答
网友
1楼 · 发布于 2024-06-08 23:14:22

你有从pypy安装dev文件吗?我不使用Ubuntu,但我相信这个包名为pypy-dev

您提到的那个属于主Python安装。/usr/include/python2.7/Python.h

相关问题 更多 >