|
本帖最后由 pagani 于 2020-2-29 19:05 编辑
请问在win10环境是否可以安装miio 0.4.8?
已经安装了home assistant,可正常运行。
然后操作是否应该在命令行下输入
pip install python-miio
或
pip3 install python-miio
目前安装遇到错误,不知应如何解决。
提示如下:
pip install python-miio
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting python-miio
Using cached https://mirrors.aliyun.com/pypi/ ... .8-py3-none-any.whl (174 kB)
Requirement already satisfied: construct in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (2.10.56)
Requirement already satisfied: click>=7 in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (7.0)
Collecting netifaces
Using cached https://mirrors.aliyun.com/pypi/ ... faces-0.10.9.tar.gz (28 kB)
Requirement already satisfied: appdirs in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (1.4.3)
Requirement already satisfied: pytz in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (2019.3)
Requirement already satisfied: attrs in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (19.3.0)
Requirement already satisfied: zeroconf in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (0.24.4)
Requirement already satisfied: cryptography in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (2.8)
Requirement already satisfied: tqdm in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (4.43.0)
Requirement already satisfied: ifaddr in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from zeroconf->python-miio) (0.1.6)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from cryptography->python-miio) (1.14.0)
Requirement already satisfied: six>=1.4.1 in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from cryptography->python-miio) (1.14.0)
Requirement already satisfied: pycparser in c:\users\pagan\appdata\local\programs\python\python38-32\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography->python-miio) (2.19)
Installing collected packages: netifaces, python-miio
Running setup.py install for netifaces ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\pagan\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pagan\\AppData\\Local\\Temp\\pip-install-om73knl8\\netifaces\\setup.py'"'"'; __file__='"'"'C:\\Users\\pagan\\AppData\\Local\\Temp\\pip-install-om73knl8\\netifaces\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\pagan\AppData\Local\Temp\pip-record-txem83qx\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\pagan\appdata\local\programs\python\python38-32\Include\netifaces'
cwd: C:\Users\pagan\AppData\Local\Temp\pip-install-om73knl8\netifaces\
Complete output (11 lines):
running install
running build
running build_ext
building 'netifaces' extension
creating build
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.10.9 -Ic:\users\pagan\appdata\local\programs\python\python38-32\include -Ic:\users\pagan\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" /Tcnetifaces.c /Fobuild\temp.win32-3.8\Release\netifaces.obj
netifaces.c
c:\users\pagan\appdata\local\programs\python\python38-32\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\pagan\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\pagan\\AppData\\Local\\Temp\\pip-install-om73knl8\\netifaces\\setup.py'"'"'; __file__='"'"'C:\\Users\\pagan\\AppData\\Local\\Temp\\pip-install-om73knl8\\netifaces\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\pagan\AppData\Local\Temp\pip-record-txem83qx\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\pagan\appdata\local\programs\python\python38-32\Include\netifaces' Check the logs for full command output.
求教各位了,谢谢!
|
|