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

 找回密码
 立即注册
查看: 2029|回复: 3

[基础教程] 求教,pip安装backports.zoneinfo包时出错

[复制链接]

20

主题

334

帖子

2487

积分

论坛积极会员

积分
2487
金钱
2153
HASS币
0
发表于 2021-10-3 16:25:47 | 显示全部楼层 |阅读模式
各位大神,我今天升级ha时候,始终卡在backports.zoneinfo包安装环节,求教各位大神怎么解决。python版本是3.8.6。
报错内容如下:
ERROR: Command errored out with exit status 1:
   command: /srv/homeassistant/bin/python /srv/homeassistant/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-k4ppwowp/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://mirrors.aliyun.com/pypi/simple/ -- 'setuptools>=40.8.0' wheel
       cwd: None
  Complete output (31 lines):
  Traceback (most recent call last):
    File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "/srv/homeassistant/lib/python3.8/site-packages/pip/__main__.py", line 26, in <module>
      sys.exit(_main())
    File "/srv/homeassistant/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 73, in main
      command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
    File "/srv/homeassistant/lib/python3.8/site-packages/pip/_internal/commands/__init__.py", line 104, in create_command
      module = importlib.import_module(module_path)
    File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
    File "<frozen importlib._bootstrap>", line 991, in _find_and_load
    File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 783, in exec_module
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "/srv/homeassistant/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 17, in <module>
      from pip._internal.cli.req_command import RequirementCommand, with_cleanup
    File "/srv/homeassistant/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 22, in <module>
      from pip._internal.req.constructors import (
    File "/srv/homeassistant/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 10, in <module>
      from .req_install import InstallRequirement
    File "/srv/homeassistant/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 10, in <module>
      import uuid
    File "/srv/homeassistant/lib/python3.8/site-packages/uuid.py", line 138
      if not 0 <= time_low < 1<<32L:
                                  ^
  SyntaxError: invalid syntax
  ----------------------------------------
ERROR: Command errored out with exit status 1: /srv/homeassistant/bin/python /srv/homeassistant/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-k4ppwowp/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://mirrors.aliyun.com/pypi/simple/ -- 'setuptools>=40.8.0' wheel Check the logs for full command output.

回复

使用道具 举报

20

主题

334

帖子

2487

积分

论坛积极会员

积分
2487
金钱
2153
HASS币
0
 楼主| 发表于 2021-10-3 22:06:24 | 显示全部楼层
自顶求助
回复

使用道具 举报

20

主题

334

帖子

2487

积分

论坛积极会员

积分
2487
金钱
2153
HASS币
0
 楼主| 发表于 2021-10-4 23:06:46 | 显示全部楼层
求大神帮助!
回复

使用道具 举报

20

主题

334

帖子

2487

积分

论坛积极会员

积分
2487
金钱
2153
HASS币
0
 楼主| 发表于 2021-10-8 16:15:44 | 显示全部楼层
自顶求助
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 14:35 , Processed in 0.247116 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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