ubuntu安装uwsgi遇到的问题解决方案
2015-11-05 11:02
633 查看
uwsgi安装
ubuntu安装uwsgi遇到的问题Command "/root/myenv/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-7cr2or3v/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-omoei_c8-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/myenv/include/site/python3.4/uwsgi" failed with error code 1 in /tmp/pip-build-7cr2or3v/uwsgi (myenv)root@iZ94oziy87wZ:~#
上面的问题不知道原因,也没有给我太多错误提示。
python-dev已经安装。
索性直接安装源码。
直接 下载源码安装 http://projects.unbit.it/downloads/uwsgi-latest.tar.gz*** uWSGI compiling embedded plugins *** [x86_64-linux-gnu-gcc -pthread] plugins/python/python_plugin.o 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 #include <Python.h> ^
这回算是知道问题在哪里了,Python.h
find /usr -name Pythond.h
只在Python2.7下面找到这个。
顿悟
apt-get install python3-dev以上所有操作均在virtualenv下面完成。
相关文章推荐
- C#接口作用
- javascript 的几种使用多行字符串的方式
- leetcode-Power of Two
- 通过CLLocationManager定位当前坐标和城市
- 欢迎使用CSDN-markdown编辑器
- Freemarker list对象取前几条数据
- C#的textbox的LostFocus事件重复执行
- 【C/C++】Linux下使用system()函数一定要谨慎
- 如何用SQL操作数据------告别标题党
- 关于panic之LOCKUP
- Java对象序列化
- 线程捕获异常
- hibernate的一些常见错误
- c++单例
- android权限大全
- View的getScrollX(),getScrollY(),getScrollBy(),getScrollTo()
- Socket 编程(二)
- 网络虚拟化技术(一): Linux网络虚拟化
- ArcEngine:栅格分级渲染
- URAL 1534 Football in Gondor