|
发表于 2019-8-9 14:27:01
|
显示全部楼层
大神,下面的报错如何解决啊 谷歌百度都没搜到 N1环境
Installing collected packages: zipp, importlib-metadata, voluptuous, voluptuous-serialize, immutables, contextvars, pytz, astral, MarkupSafe, jinja2, text-unidecode, python-slugify, ruamel.yaml, PyJWT, asn1crypto, pycparser, cffi, cryptography, bcrypt, pyyaml, homeassistant
Running setup.py install for voluptuous-serialize ... done
Running setup.py install for immutables ... error
Complete output from command /srv/homeassistant/homeassistant_venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-op41axc5/immutables/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-p7nxd7jq-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/immutables:
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/immutables
copying immutables/map.py -> build/lib.linux-aarch64-3.6/immutables
copying immutables/__init__.py -> build/lib.linux-aarch64-3.6/immutables
running egg_info
writing immutables.egg-info/PKG-INFO
writing dependency_links to immutables.egg-info/dependency_links.txt
writing top-level names to immutables.egg-info/top_level.txt
reading manifest file 'immutables.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'immutables.egg-info/SOURCES.txt'
copying immutables/_map.c -> build/lib.linux-aarch64-3.6/immutables
copying immutables/_map.h -> build/lib.linux-aarch64-3.6/immutables
running build_ext
building 'immutables._map' extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/immutables
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/srv/homeassistant/homeassistant_venv/include -I/usr/include/python3.6m -c immutables/_map.c -o build/temp.linux-aarch64-3.6/immutables/_map.o -O2 -std=c99 -fsigned-char -Wall -Wsign-compare -Wconversion
In file included from immutables/_map.c:2:0:
immutables/_map.h:5:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/srv/homeassistant/homeassistant_venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-op41axc5/immutables/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-p7nxd7jq-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/immutables" failed with error code 1 in /tmp/pip-build-op41axc5/immutables/
|
|