|
本帖最后由 klaus 于 2021-11-17 00:17 编辑
(my_env_PY) root@localhost:~# pip install homeassistant
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting homeassistant
Using cached http://mirrors.aliyun.com/pypi/p ... .5-py3-none-any.whl (10.2 MB)
Collecting ruamel.yaml==0.15.100
Using cached http://mirrors.aliyun.com/pypi/p ... aml-0.15.100.tar.gz (318 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zgc06pdl/ruamel-yaml_47ee40ed0eb246a584cbd2d3e18f9388/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zgc06pdl/ruamel-yaml_47ee40ed0eb246a584cbd2d3e18f9388/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-2m3yjdj0
cwd: /tmp/pip-install-zgc06pdl/ruamel-yaml_47ee40ed0eb246a584cbd2d3e18f9388/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 19, in <module>
from setuptools.dist import Distribution
File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 38, in <module>
from setuptools import windows_support
File "/usr/local/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/usr/local/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
----------------------------------------
WARNING: Discarding http://mirrors.aliyun.com/pypi/p ... 526f888e026854db2e4 (from http://mirrors.aliyun.com/pypi/simple/ruamel-yaml/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
在运行了pip install homeassistant 命令后报出以上错误,根据百度,谷歌搜索出来的解决办法是貌似缺少插件,但都已经安装步骤安装好了,还是无法安装成功,有哪位大佬遇过这样的错误
我是在手机通过Linux Deploy 安装Ubuntu ,然后安装的=====================================================================================
以上方法不太推荐,我尝试了另外一个软件Alpine Linux 16.0release 版本实现了 安装homeassistant 在手机上,教程在B站有,另外安装包原作者已经删帖,不过科学上网Google一下有,有兴趣的可以自己尝试一下。
建议最好是具备科学上网的条件,所以安装包我就不发出来了。
|
|