fatal error: Python.h: No such file or directory解决办法
来源:互联网 发布:java post上传图片 编辑:程序博客网 时间:2024/05/17 05:52
sudo apt-get install scikit-image
在安装scikit-image时出现如下错误:
Installing collected packages: subprocess32, python-dateutil, backports.functools-lru-cache, pyparsing, matplotlib, olefile, pillow, decorator, networkx, PyWavelets, scikit-image
Running setup.py install for subprocess32 ... errorComplete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-USvdkA/subprocess32/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-PkTukF-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying subprocess32.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_posixsubprocess' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o
_posixsubprocess.c:3:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-USvdkA/subprocess32/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-PkTukF-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-USvdkA/subprocess32/
解决办法:
sudo apt-get install python-dev
阅读全文
0 0
- fatal error: Python.h: No such file or directory 解决办法
- fatal error: Python.h: No such file or directory解决办法
- fatal error: Python.h: No such file or directory解决办法
- fatal error: Python.h: No such file or directory
- fatal error: Python.h: No such file or directory
- fatal error: Python.h: No such file or directory
- 解决fatal error: Python.h: No such file or directory
- fatal error: Python.h: No such file or directory
- fatal error: Python.h: No such file or directory
- fatal error C1083: Cannot open include file: 'htmlhelp.h': No such file or directory 解决办法
- fatal error: zlib.h: No such file or directory
- fatal error: png.h: No such file or directory
- fatal error: mysql.h: No such file or directory
- fatal error: linux/limits.h: No such file or directory
- fatal error: cocostudio/CocoStudio.h: No such file or directory
- fatal error: android/native_window.h: No such file or directory
- fatal error: curses.h: No such file or directory
- fatal error: curses.h: No such file or directory
- 进化算法之神秘的二进制
- 双十二:2017这些活动不可错过
- 修改内核的启动logo
- RabbitMQ 介绍与使用
- 线程池的基本用法与相对定时+绝对定时的策略
- fatal error: Python.h: No such file or directory解决办法
- egret native相关的一些记录
- Allegro PCB Design GXL查看线长
- Centos下配置Redis开机启动
- hbase参数调优 hbase.hregion.max.filesize
- LintCode 第111题 爬楼梯 【动态规划算法】
- 心理所等揭示“吃亏是福”的现实价值
- java冒泡排序
- hibernate中的赖加载,抓取策略,批量抓取