在安装Python的buildozer时候一直安装不上
error: subprocess-exited-with-error
全部报错:
C:\Users\*****>pip install buildozer
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting buildozer
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/50/14/5e9b8f12a41d7536226d1d34f276c98c749f6548c115a018185b2e60c6bd/buildozer-1.4.0-py3-none-any.whl (84 kB)
Collecting sh
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/09/89c28aaf2a49f226fef8587c90c6386bd2cc03a0295bc4ff7fc6ee43c01d/sh-1.14.3.tar.gz (62 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Traceback (most recent call last):
File "" , line 2, in
File "" , line 34, in
File "C:\Users\86183\AppData\Local\Temp\pip-install-bxu0v62a\sh_68dcda09ed3c4afc8d1cb2491c6ec172\setup.py", line 5, in
import sh
File "C:\Users\86183\AppData\Local\Temp\pip-install-bxu0v62a\sh_68dcda09ed3c4afc8d1cb2491c6ec172\sh.py", line 45, in
import pty
File "C:\Users\86183\AppData\Local\Programs\Python\Python39\lib\pty.py", line 12, in
import tty
File "C:\Users\86183\AppData\Local\Programs\Python\Python39\lib\tty.py", line 5, in
from termios import *
ModuleNotFoundError: No module named 'termios'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
看上面
在网上查了很多东西,都不管用
缺少必要的库或组件引起的。
pip install termios
跟着报错去安装相关的库或组件就行。
望采纳。