问题遇到的现象和发生背景
在安装Python的buildozer时候一直安装不上
遇到的现象和发生背景,请写出第一个错误信息
error: subprocess-exited-with-error
用代码块功能插入代码,请勿粘贴截图。 不用代码块回答率下降 50%
全部报错:
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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\86183\AppData\Local\Temp\pip-install-bxu0v62a\sh_68dcda09ed3c4afc8d1cb2491c6ec172\setup.py", line 5, in <module>
import sh
File "C:\Users\86183\AppData\Local\Temp\pip-install-bxu0v62a\sh_68dcda09ed3c4afc8d1cb2491c6ec172\sh.py", line 45, in <module>
import pty
File "C:\Users\86183\AppData\Local\Programs\Python\Python39\lib\pty.py", line 12, in <module>
import tty
File "C:\Users\86183\AppData\Local\Programs\Python\Python39\lib\tty.py", line 5, in <module>
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.
运行结果及详细报错内容
看上面
我的解答思路和尝试过的方法,不写自己思路的,回答率下降 60%
在网上查了很多东西,都不管用