|
纯小白,错误信息如下,请问该如何解决:
admin@R7000:/tmp/mnt/sda5/entware/bin# python3 -m pip install homeassistant
Collecting homeassistant
Using cached https://files.pythonhosted.org/p ... .3-py3-none-any.whl
Collecting PyJWT==1.7.1 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Collecting astral==1.10.1 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Requirement already satisfied: attrs==19.1.0 in /tmp/mnt/sda5/entware/lib/python3.7/site-packages (from homeassistant) (19.1.0)
Collecting certifi>=2019.6.16 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Collecting requests==2.22.0 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Collecting importlib-metadata==0.19 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Requirement already satisfied: pip>=8.0.3 in /tmp/mnt/sda5/entware/lib/python3.7/site-packages (from homeassistant) (19.2.3)
Collecting voluptuous-serialize==2.2.0 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... ialize-2.2.0.tar.gz
Collecting voluptuous==0.11.7 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... tuous-0.11.7.tar.gz
Collecting jinja2>=2.10.1 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Collecting python-slugify==3.0.3 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... lugify-3.0.3.tar.gz
Collecting aiohttp==3.5.4 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... iohttp-3.5.4.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting bcrypt==3.1.7 (from homeassistant)
Using cached https://files.pythonhosted.org/p ... bcrypt-3.1.7.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3 /opt/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/mnt/sda5/entware/tmp/pip-build-env-v0y645v9/overlay --no-warn-script-location --no-bin
ary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel 'cffi>=1.1; python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (76 lines):
Collecting setuptools>=40.8.0
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Collecting cffi>=1.1
Using cached https://files.pythonhosted.org/p ... /cffi-1.12.3.tar.gz
Collecting pycparser (from cffi>=1.1)
Using cached https://files.pythonhosted.org/p ... cparser-2.19.tar.gz
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/mnt/sda5/entware/tmp/pip-install-2zeo0f2s/cffi/setup.py'"'"'; __file__='"'"'/tmp/mnt/sda5/entware/tmp/pip
-install-2zeo0f2s/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' insta
ll --record /tmp/mnt/sda5/entware/tmp/pip-record-oy0ju_ug/install-record.txt --single-version-externally-managed --prefix /tmp/mnt/sda5/entware/tmp/pip-build-env-v0y645v9/overlay --compile
cwd: /tmp/mnt/sda5/entware/tmp/pip-install-2zeo0f2s/cffi/
Complete output (57 lines):
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/c
arm-openwrt-linux-gnueabi-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unu
sed-result -mfloat-abi=soft -O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -O
2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -I/media/ware3/Entware.2019.05/s
taging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include -I/media/ware3/Entware.2019.05/staging_dir/toolchain-arm_cortex-a9_gcc-7.4.0_glibc-2.23_eabi/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZ
E -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
arm-openwrt-linux-gnueabi-gcc -shared -L/media/ware3/Entware.2019.05/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/media/ware3/Entware.2019.05/stagin
g_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -L/media/ware3/Entware.2019.05/staging_dir/toolchain-arm_cortex-a9_gcc-7.4.0_glibc-2.23_eabi/lib -L/media/wa
re3/Entware.2019.05/build_dir/target-arm_cortex-a9_glibc-2.23_eabi/Python-3.7.2 -L/media/ware3/Entware.2019.05/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link
=/media/ware3/Entware.2019.05/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -L/media/ware3/Entware.2019.05/staging_dir/toolchain-arm_cortex-a9_gcc-7
.4.0_glibc-2.23_eabi/lib -L/media/ware3/Entware.2019.05/build_dir/target-arm_cortex-a9_glibc-2.23_eabi/Python-3.7.2 build/temp.linux-armv7l-3.7/c/_cffi_backend.o -L/opt/lib -lffi -lpython3.7 -o build/lib
.linux-armv7l-3.7/_cffi_backend.cpython-37.so
/opt/bin/ld: cannot find -lffi
collect2: error: ld returned 1 exit status
error: command 'arm-openwrt-linux-gnueabi-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/mnt/sda5/entware/tmp/pip-install-2zeo0f2s/cffi/setup.py'"'"'; __file__='
"'"'/tmp/mnt/sda5/entware/tmp/pip-install-2zeo0f2s/cffi/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/mnt/sda5/entware/tmp/pip-record-oy0ju_ug/install-record.txt --single-version-externally-managed --prefix /tmp/mnt/sda5/entware/tmp/pip-build-env-v0y645v9
/overlay --compile Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 /opt/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/mnt/sda5/entware/tmp/pip-build-env-v0y645v9/overlay
--no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel 'cffi>=1.1; python_implementation != '"'"'PyPy'"'"'' Check the logs for full co
mmand output.
|
|