[英]bpython not running on win 10 despite installed curses
所以我完成了解決方法,以便能夠在 windows 10 PC(64 位,Python 3.10.2)上運行 bpython。 從http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses安裝必要的詛咒
安裝bpython(pip安裝bpython)
並運行 bpython-curses.exe。 我仍然收到以“from fcntl import ioctl ModuleNotFoundError: No module named 'fcntl'”結尾的長錯誤
有任何想法嗎?
pip install -U windows-curses bpython
然后從%APPDATA\..\Local\Programs\Python\Python38\Lib\site-packages\bpython\args.py
或類似位置注釋/刪除第 35 和 221 行。 這些將是其中包含字符串curtsies
的行(示例見下文)。
然后運行
bpython-curses
技術細節......: args.py
:
import argparse
from typing import Tuple, List, Optional, NoReturn, Callable
import code
# import curtsies ### REMOVE
import cwcwidth
...
logger.info("Python %s: %s", sys.executable, sys.version_info)
# versions of required dependencies
# logger.info("curtsies: %s", curtsies.__version__) ### REMOVE
logger.info("cwcwidth: %s", cwcwidth.__version__)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.