Running Twisted-12.2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5d2sWW/Twisted-12.2.0/egg-dist-tmp-k7LYZq html
twisted/runner/portmap.c:10:20: error: Python.h: No such file or directory python
Solution ubuntu
目錄/usr/include/python2.6/缺乏Python.h文件code
# CentOS 使用下面命令# yum install python-devel
今天在實驗室的ubuntu機子上安裝Eventlet,在安裝依賴包greenlet時出現錯誤,出現編譯錯誤。 htm
錯誤以下: blog
In file included from greenlet.c:5:0: ip
greenlet.h:8:20: 致命錯誤: Python.h:沒有那個文件或目錄 get
編譯中斷。 it
error: Setup script exited with error: command 'gcc' failed with exit status 1 io
解決方法是安裝python-dev,這是Python的頭文件和靜態庫包:
sudo apt-get install python-dev