Python中文
首页
教程
问答
标签
搜索
登录
注册
在virtualen中安装uwsgi时出错
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我试图在linux ubuntu,python 3.5.2上的virutal环境中安装uswgi 我知道</p> <pre><code>pip install uwsgi </code></pre> <p>我搞错了</p> <pre><code>Failed building wheel for uwsgi </code></pre> <p>在安装日志的最后</p> <pre><code> *** uWSGI compiling embedded plugins *** [thread 0][x86_64-linux-gnu-gcc -pthread] plugins/python/python_plugin.o [thread 1][x86_64-linux-gnu-gcc -pthread] plugins/python/pyutils.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 compilation terminated. In file included from plugins/python/pyutils.c:1:0: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory compilation terminated. ---------------------------------------- Command "/home/ubuntu/envflask/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-wthov1ur/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-quiupta5-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/envflask/env/include/site/python3.5/uwsgi" failed with error code 1 in /tmp/pip-build-wthov1ur/uwsgi/ </code></pre> <ul> <li>Linux 4.4.0-66-通用x86_64</li> <li>Python3.5.2</li> </ul> <p>有什么解决办法吗?谢谢</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>您需要安装Python3.5开发文件,因此运行以下命令:</p> <pre><code>apt-get install python3.5-dev </code></pre> <p>上面的命令将安装Python 3头文件以从源代码构建uWSGI。</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何提高Djang的410误差
10 回答
如何提高doc2vec模型中两个文档(句子)的余弦相似度?
9 回答
如何提高Docker的日志限制?|[输出已剪裁,达到日志限制100KiB/s]
4 回答
如何提高DQN的性能?
9 回答
如何提高EasyOCR的准确性/预测?
5 回答
如何提高Euler#39项目解决方案的效率?
8 回答
如何提高F1成绩进行分类
4 回答
如何提高FaceNet的准确性
7 回答
如何提高fft处理的精度?
2 回答
如何提高Fibonacci实现对大n的精度?
9 回答
如何提高Flask与psycopg2的连接时间
9 回答
如何提高FosterCauer变换的scipy.signal.invres()的数值稳定性?
6 回答
如何提高gae查询的性能?
6 回答
如何提高GANs用于时间序列预测/异常检测的结果
6 回答
如何提高gevent和tornado组合的性能?
9 回答
如何提高googleappengin请求日志的吞吐量
5 回答
如何提高googlevision文本识别的准确性
5 回答
如何提高groupby/apply效率
8 回答
如何提高Gunicorn中的请求率
3 回答
如何提高G中的文件编码转换
9 回答