Can't install bpython on Windows 10 via pip

六月ゝ 毕业季﹏ 提交于 2020-12-15 05:16:07

问题


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

python -m pip install windows-curses

Also the following

python -m pip install bpython

does not show any problems.

Unfortunately running bpython results in a

ModuleNotFoundError: No module named 'fcntl'

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


回答1:


Found the solution on their 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

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

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.

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.



来源:https://stackoverflow.com/questions/64714934/cant-install-bpython-on-windows-10-via-pip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!