ubuntu17 python3.6 出错 找不到 Python.h 安装uwsgi
2017-06-09 10:46
567 查看
在virtualenv中使用python3.6安装uwsgi时,老是提示找不到 Python.h
plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: 没有那个文件或目录
#include <Python.h>
^~~~~~~~~~
安装完python-dev,python3-dev还是不行,而且python3.5可以正常安装uwsgi,
`locate Python.h`可以发现python2.7和python3.5都有这个文件,都在/usr/include下面。
直接用`cp -r /usr/include/python3.5m /usr/include/python3.6m`再install uwsgi则是报“/usr/bin/ld: 找不到 -lpython3.6m”的错误。
本来已经打算下载uwsgi的源码包下来本地安装了,幸好看了这篇博客:http://eminzhang.blog.51cto.com/5292425/1285705/
然后一个命令就搞定了:
再重新
发现装上了。。。
plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: 没有那个文件或目录
#include <Python.h>
^~~~~~~~~~
安装完python-dev,python3-dev还是不行,而且python3.5可以正常安装uwsgi,
`locate Python.h`可以发现python2.7和python3.5都有这个文件,都在/usr/include下面。
直接用`cp -r /usr/include/python3.5m /usr/include/python3.6m`再install uwsgi则是报“/usr/bin/ld: 找不到 -lpython3.6m”的错误。
本来已经打算下载uwsgi的源码包下来本地安装了,幸好看了这篇博客:http://eminzhang.blog.51cto.com/5292425/1285705/
然后一个命令就搞定了:
sudo apt-get install libpython3.6-dev
再重新
pip install uwsgi
发现装上了。。。
相关文章推荐
- Ubuntu16.04上使用Anaconda3的Python3.6的pip安装UWSGI报错解决办法
- Python安装第三方库时提示找不到python安装路径 出错信息为 Python version 2.7 required, which was not found in the registry
- ubuntu安装mysql-python出错,EnvironmentError: mysql_config not found
- ubuntu——安装python3.6和sublime text3
- Linux Ubuntu16.04 安装Python3.6
- [python] python3.6 安装 pytesseract 出错
- Ubuntu安装MySql for Python的出错及解决
- Ubuntu14.04下安装opencv3(anaconda3 Python3.6)
- Ubuntu安装最新的Python 3.6版本
- 在Ubuntu 16.04 安装python3.6 环境并设置为默认
- python3.6 安装Twisted出错怎么办
- flask安装mysql-python出错(环境ubuntu14.04)
- 解决ubuntu下安装python依赖出错的问题
- 在Ubuntu 16.04 安装python3.6 环境并设置为默认
- 在Ubuntu 10.04上安装Mysql-python出错
- make menuconfig出错,需要安装libncurses5-dev找不到文件的终极解决办法(不必更换源,适用于ubuntu 32位平台)
- ubuntu server 16.04下安装python3.6
- Ubuntu14.04 Anaconda(python3.6)安装tensorflow (报错:undefined symbol: zgelsd_; is not a supported wheel等
- 安装Python 3.6 在Ubuntu 16.04 LTS 版本
- CentOS 安装uwsgi提示找不到Python.h文件