|
本帖最后由 apphome 于 2017-12-26 09:44 编辑
在容器里安装python_miio红字提示错误:
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-vp9smcgq/netifaces/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-baxu2wyw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-vp9smcgq/netifaces/
看了脚本记录“Running setup.py install for netifaces ... error“ netifaces模块安装失败,是因为没有安装linux的内核头文件包造成的。
执行命令:apk add linux-headers 安装软件包以后,再运行pip3 install python-miio 安装成功~
|
|