无法通过 pip 在 Windows 10 上安装 bpython [英] Can't install bpython on Windows 10 via pip

查看:32
本文介绍了无法通过 pip 在 Windows 10 上安装 bpython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I've tried to setup windwos-curses as first step and it completes fine.

python -m pip install windows-curses

还有以下内容

python -m pip install bpython

没有显示任何问题.

不幸的是,运行 bpython 导致

Unfortunately running bpython results in a

ModuleNotFoundError: No module named 'fcntl'

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

Does it mean that bpython is not running on Windows 10 or is there another option for the installation here?

推荐答案

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

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

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,它看起来不错(一些命令是 不可用.

So, I'm running bpython-curses and it looks good to me (a few commands are not available though).

不幸的是,有一个错误,即它删除当前行并在开头返回历史,当我输入下划线或大写P,但Sebastian Ramacher 现已修复.

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.

另请注意,他们的主页建议安装非官方 Windowspdcurses 的二进制文件,但无论哪种方式,它都确认您必须通过键入 bpython-curses 在提示上来启动它.

Notice also that their home suggests to install an unofficial windows binary for pdcurses, but either way it confirms that you have to launch it by typing bpython-curses on your prompt.

这篇关于无法通过 pip 在 Windows 10 上安装 bpython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆