『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1734|回复: 1

[求助] 群晖python3.8安装homeassistant问题

[复制链接]

1

主题

10

帖子

74

积分

注册会员

Rank: 2

积分
74
金钱
64
HASS币
0
发表于 2021-2-3 22:40:57 | 显示全部楼层 |阅读模式
升级pip后 用命令安装homeassistant 为什么又帮我降级?还提示一个 ciso8601的东西无法编译?????????????求教大神

Successfully installed wheel-0.36.2
WARNING: You are using pip version 20.2.4; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
root@SynologyDS120j:~# /usr/local/bin/python3 -m pip install --upgrade pip
Collecting pip
  Using cached pip-21.0.1-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.2.4
    Uninstalling pip-20.2.4:
      Successfully uninstalled pip-20.2.4
Successfully installed pip-21.0.1
root@SynologyDS120j:~# python3 -m pip install wheel
Requirement already satisfied: wheel in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (0.36.2)
root@SynologyDS120j:~# sudo pip3 install homeassistant
Collecting homeassistant
  Using cached homeassistant-2021.1.5-py3-none-any.whl (10.2 MB)
Requirement already satisfied: async-timeout==3.0.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (3.0.1)
Requirement already satisfied: requests==2.25.0 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (2.25.0)
Requirement already satisfied: httpx==0.16.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (0.16.1)
Requirement already satisfied: voluptuous-serialize==2.4.0 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (2.4.0)
Requirement already satisfied: aiohttp==3.7.3 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (3.7.3)
Collecting ciso8601==2.1.3
  Using cached ciso8601-2.1.3.tar.gz (15 kB)
Requirement already satisfied: astral==1.10.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (1.10.1)
Requirement already satisfied: python-slugify==4.0.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (4.0.1)
Requirement already satisfied: yarl==1.6.3 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (1.6.3)
Requirement already satisfied: cryptography==3.2 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (3.2)
Collecting pip<20.3,>=8.0.3
  Using cached pip-20.2.4-py2.py3-none-any.whl (1.5 MB)
Requirement already satisfied: voluptuous==0.12.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (0.12.1)
Requirement already satisfied: jinja2>=2.11.2 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (2.11.3)
Requirement already satisfied: ruamel.yaml==0.15.100 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (0.15.100)
Requirement already satisfied: attrs==19.3.0 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (19.3.0)
Requirement already satisfied: pyyaml==5.3.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (5.3.1)
Collecting bcrypt==3.1.7
  Using cached bcrypt-3.1.7-cp35-abi3-manylinux2014_aarch64.whl (56 kB)
Requirement already satisfied: certifi>=2020.6.20 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (2020.12.5)
Requirement already satisfied: PyJWT==1.7.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (1.7.1)
Requirement already satisfied: pytz>=2020.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from homeassistant) (2021.1)
Requirement already satisfied: multidict<7.0,>=4.5 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from aiohttp==3.7.3->homeassistant) (5.1.0)
Requirement already satisfied: chardet<4.0,>=2.0 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from aiohttp==3.7.3->homeassistant) (3.0.4)
Requirement already satisfied: typing-extensions>=3.6.5 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from aiohttp==3.7.3->homeassistant) (3.7.4.3)
Requirement already satisfied: six>=1.4.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from bcrypt==3.1.7->homeassistant) (1.15.0)
Requirement already satisfied: cffi>=1.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from bcrypt==3.1.7->homeassistant) (1.14.4)
Requirement already satisfied: httpcore==0.12.* in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from httpx==0.16.1->homeassistant) (0.12.3)
Requirement already satisfied: sniffio in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from httpx==0.16.1->homeassistant) (1.2.0)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from httpx==0.16.1->homeassistant) (1.4.0)
Requirement already satisfied: h11==0.* in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from httpcore==0.12.*->httpx==0.16.1->homeassistant) (0.12.0)
Requirement already satisfied: text-unidecode>=1.3 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from python-slugify==4.0.1->homeassistant) (1.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from requests==2.25.0->homeassistant) (1.26.3)
Requirement already satisfied: idna<3,>=2.5 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from requests==2.25.0->homeassistant) (2.10)
Requirement already satisfied: pycparser in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from cffi>=1.1->bcrypt==3.1.7->homeassistant) (2.20)
Requirement already satisfied: MarkupSafe>=0.23 in /volume1/@appstore/py3k/usr/local/lib/python3.8/site-packages (from jinja2>=2.11.2->homeassistant) (1.1.1)
Building wheels for collected packages: ciso8601
  Building wheel for ciso8601 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-55f2y_yx
       cwd: /tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/
  Complete output (15 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'ciso8601/__init__.py' not found (or not a regular file)
  creating build
  creating build/lib.linux-aarch64-3.8
  creating build/lib.linux-aarch64-3.8/ciso8601
  copying ciso8601/__init__.pyi -> build/lib.linux-aarch64-3.8/ciso8601
  copying ciso8601/py.typed -> build/lib.linux-aarch64-3.8/ciso8601
  running build_ext
  building 'ciso8601' extension
  creating build/temp.linux-aarch64-3.8
  /usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-ccache-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DSYNOPLAT_F_ARMV8 -O2 -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=64 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -DCISO8601_VERSION=2.1.3 -I/var/packages/py3k/target/usr/local/include/python3.8 -c module.c -o build/temp.linux-aarch64-3.8/module.o
  unable to execute '/usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-ccache-gcc': No such file or directory
  error: command '/usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-ccache-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for ciso8601
  Running setup.py clean for ciso8601
Failed to build ciso8601
Installing collected packages: pip, ciso8601, bcrypt, homeassistant
  Attempting uninstall: pip
    Found existing installation: pip 21.0.1
    Uninstalling pip-21.0.1:
      Successfully uninstalled pip-21.0.1
    Running setup.py install for ciso8601 ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/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-record-3tqorfr3/install-record.txt --single-version-externally-managed --compile --install-headers /var/packages/py3k/target/usr/local/include/python3.8/ciso8601
         cwd: /tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/
    Complete output (15 lines):
    running install
    running build
    running build_py
    package init file 'ciso8601/__init__.py' not found (or not a regular file)
    creating build
    creating build/lib.linux-aarch64-3.8
    creating build/lib.linux-aarch64-3.8/ciso8601
    copying ciso8601/__init__.pyi -> build/lib.linux-aarch64-3.8/ciso8601
    copying ciso8601/py.typed -> build/lib.linux-aarch64-3.8/ciso8601
    running build_ext
    building 'ciso8601' extension
    creating build/temp.linux-aarch64-3.8
    /usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-ccache-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DSYNOPLAT_F_ARMV8 -O2 -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=64 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -DCISO8601_VERSION=2.1.3 -I/var/packages/py3k/target/usr/local/include/python3.8 -c module.c -o build/temp.linux-aarch64-3.8/module.o
    unable to execute '/usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-ccache-gcc': No such file or directory
    error: command '/usr/local/aarch64-unknown-linux-gnueabi/bin/aarch64-unknown-linux-gnueabi-ccache-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h5p6sufi/ciso8601_75ddf8856ae84a43be1c2a8c54a3bd27/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-record-3tqorfr3/install-record.txt --single-version-externally-managed --compile --install-headers /var/packages/py3k/target/usr/local/include/python3.8/ciso8601 Check the logs for full command output.

回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2021-2-4 10:12:33 | 显示全部楼层
楼主厉害~在群辉用python装HA 大拇指~
Nero
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 10:11 , Processed in 0.164584 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表