Grz*_*orz 22 python nginx django python-2.7
欢迎,
目前,我正在尝试根据网站http://projects.unbit.it/uwsgi/wiki/Quickstart 的说明在我的 VPS(Ubuntu 11.10)上安装最新的 uwsgi
pip install uwsgi
Run Code Online (Sandbox Code Playgroud)
在编译期间,我看到一些错误:
...
[gcc -pthread] spooler.o
*** uWSGI compiling embedded plugins ***
[gcc -pthread] plugins/python/python_plugin.o
Complete output from command /usr/bin/python -c "import setuptools;__file__='/etc/apt/sources.list.d/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-joud1I-record/install-record.txt:
running install
In file included from plugins/python/python_plugin.c:1:0:
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/i686-linux-gnu/4.6.1/include','/usr/local/include', '/usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed', '/usr/include/i386-linux-gnu', '/usr/include']
Patching "bin_name" to properly install_scripts dir
...
Run Code Online (Sandbox Code Playgroud)
最后我看到:
...
[gcc -pthread] spooler.o
*** uWSGI compiling embedded plugins ***
[gcc -pthread] plugins/python/python_plugin.o
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/etc/apt/sources.list.d/build/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-joud1I-record/install-record.txt failed with error code 1 in /etc/apt/sources.list.d/build/uwsgi
Storing complete log in /root/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
有人对如何安装最新的 uwsgi 有任何建议吗?
问候, Grzegorz
jfs*_*jfs 38
plugins/python/uwsgi_python.h:2:20: 致命错误: Python.h: 没有那个文件或目录
要为 Python 编译 C 扩展,您需要 Python 开发文件:
$ sudo apt-get install python2.7-dev
Run Code Online (Sandbox Code Playgroud)