gpt4 book ai didi

python - asciinema 丢失文件 : ImportError: No module named 'termios'

转载 作者:太空狗 更新时间:2023-10-30 00:07:13 25 4
gpt4 key购买 nike

当从 C:\Python34\Scripts 运行 asciinema rec 时,asciinema.exe 唯一的地方pip 命令适用于 git bash。

$ asciinema.exe
Traceback (most recent call last):
File "c:\Python34\Scripts\asciinema-script.py", line 9, in <module>
load_entry_point('asciinema==0.9.8', 'console_scripts', 'asciinema')()
File "C:\Python34\lib\site-packages\pkg_resources.py", line 353, in load_entry
_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python34\lib\site-packages\pkg_resources.py", line 2302, in load_entr
y_point
return ep.load()
File "C:\Python34\lib\site-packages\pkg_resources.py", line 2029, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "C:\Python34\lib\site-packages\asciinema\__main__.py", line 4, in <module
>
from .commands.builder import get_command
File "C:\Python34\lib\site-packages\asciinema\commands\builder.py", line 4, in
<module>
from .record import RecordCommand
File "C:\Python34\lib\site-packages\asciinema\commands\record.py", line 4, in
<module>
from asciinema.recorder import Recorder
File "C:\Python34\lib\site-packages\asciinema\recorder.py", line 5, in <module
>
from .pty_recorder import PtyRecorder
File "C:\Python34\lib\site-packages\asciinema\pty_recorder.py", line 2, in <mo
dule>
import pty
File "C:\Python34\lib\pty.py", line 11, in <module>
import tty
File "C:\Python34\lib\tty.py", line 5, in <module>
from termios import *
ImportError: No module named 'termios'

最佳答案

在 Windows 世界中,由于 POSIX 规范,termios 可通过 Cygwin 使用。

Mingw32 不支持 termios。

(我对 urwid 也有类似的问题,它也取决于 termios)

关于python - asciinema 丢失文件 : ImportError: No module named 'termios' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22941571/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com