【问题标题】:Can't install bpython on Windows 10 via pip无法通过 pip 在 Windows 10 上安装 bpython
【发布时间】:2020-11-06 12:45:29
【问题描述】:

我已尝试将windwos-curses 设置为第一步,它可以正常完成。

python -m pip install windows-curses

还有以下

python -m pip install bpython

没有显示任何问题。

不幸的是,运行 bpython 会导致

ModuleNotFoundError: No module named 'fcntl'

这是否意味着bpython 没有在 Windows 10 上运行,或者这里有其他安装选项?

【问题讨论】:

    标签: windows-10 bpython


    【解决方案1】:

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

    根据 #509 Blessings 不能在 Windows 上运行,即使使用自定义的 curses 库。我们应该更新自述文件和网站上的 Windows 安装说明,说明需要运行 bpython-curses 而不是 bpython。我们还应该考虑将 bpython-curses 设为 Windows 上的默认值

    所以,我正在运行 bpython-curses,它看起来不错(不过有几个命令是 not available)。

    不幸的是,当我输入下划线或大写字母 P 时出现了一个错误,即 it deletes the current line and returns back at the start of the history,但 it has been fixed now 由 Sebastian Ramacher 编写。

    还要注意他们的主页 suggests 为 pdcurses 安装了一个非官方的 windows 二进制文件,但无论哪种方式,它都确认你必须通过键入 bpython-curses 在你的提示符下启动它 /em>。

    【讨论】:

      猜你喜欢
      • 2020-02-17
      • 2017-10-22
      • 1970-01-01
      相关资源
      最近更新 更多