OpenCV+Ubuntu+缺少Python.h】的更多相关文章

在cmake时粗心了, 要确保有 -D PYTHON_INCLUDE_DIR=/usr/include/python3.5 且该目录下存在Python.h文件. 如果在错误提示中是python2, 那就用PYTHON2_INCLUDE_DIR即可.…
在安装uwsgi时,提示缺少python.h In file included :: plugins/python/uwsgi_python.h::: fatal error: Python.h: No such file or directory 其实是缺少python-dev 手动下载对应版本的python-dev:http://archive.ubuntu.com/ubuntu/pool/main/p/python-defaults dpkg - i python-dev_2.7.14-2…
通过pip或者源码安装psutil,都会提示缺少python.h头文件,错误提示如下: ... psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: command 'gcc' failed with exit status 1 ... 出现此错误的原因是没有安装python-devel…
下载psutil 下载地址https://pypi.python.org/packages/57/93/47a2e3befaf194ccc3d05ffbcba2cdcdd22a231100ef7e4cf63f085c900b/psutil-5.2.2.tar.gz#md5=bb98d48796cd76d9ccee871aad720f9c 解压 进入解压后的文件夹 安装 python setup.py install 我的会报错,解决方法是安装python-devel 过程如下 [root@loc…
参考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such file or directory 解决方法 根据使用的Python版本安装python-dev库. sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x i…
ubuntu安装python qingstor-sdk, src/MD2.c:31:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Failed building wheel for pycrypto 解决方法: apt-get install python3.6-…
http://www.cnblogs.com/yuxc/archive/2012/05/13/2498019.html ———————————————————————————————————————————————————————— 今天在实验室的ubuntu机子上安装Eventlet,在安装依赖包greenlet时出现错误,出现编译错误. 错误如下: In file included from greenlet.c:5:0: greenlet.h:8:20: 致命错误: Python.h:没有…
本文讲述了python安装mysql-python的方法.分享给大家供大家参考,具体如下: ubuntu 系统下进行的操作 首先安装了pip工具 ? 1 sudo apt-get install python-pip 然后使用 ? 1 sudo pip install mysql-python 安装第三方库.但是此时报错 ? 1 2 3 4 5 6 7 8 9 sh: mysql_config: not found Traceback (most recent call last):  File…
在linux命令行安装包时报错 src/MD2.c:31:20: fatal error: Python.h: No such file or directory 原因:缺少了python的dev 解决方法: $ sudo apt-get install python-dev…
最近在学习过程中发现opencv有了很多变动, OpenCV 官方的 Python tutorial目前好像还没有改过来,导致大家在学习上面都出现了一些问题,现在做一个小小的罗列,希望对大家有用 做的是关于全景图像的拼接,关于sift和surf的语法之后有需要会另开文章具体阐述,此篇主要是解决大家困惑许久的问题. 笔者python3.x 首先是安装上,必须先后安装pip install opencv_python和pip install opencv-contrib-python==3.3.0.…