无法通过 pip 在 Windows 10 上安装 bpython

Can't install bpython on Windows 10 via pip

我已经尝试将 windwos-curses 设置为第一步,它完成得很好。

python -m pip install windows-curses

还有以下

python -m pip install bpython

没有显示任何问题。

不幸的是 运行 bpython 结果

ModuleNotFoundError: No module named 'fcntl'

这是否意味着 bpython 在 Windows 10 上不是 运行 还是这里有其他安装选项?

在他们的 github 上找到了解决方案。

According to #509 Blessings doesn't work on Windows even with the custom curses library. We ought to update the Windows install instructions in the readme and on the site to say that bpython-curses needs to be run instead of bpython. We should also consider making bpython-curses the default on Windows

所以,我是 运行 bpython-curses,它看起来不错(虽然有一些命令是 not available)。

Unfortunately, there was a bug, namely it deletes the current line and returns back at the start of the history, when I type an underscore or a capital P, but it has been fixed now by Sebastian Ramacher.

另请注意,他们的主页 suggests 为 pdcurses 安装了一个非官方的 windows 二进制文件,但无论哪种方式,它都会确认您必须通过键入 来启动它 bpython-curses 根据您的提示