ImportError: No module named '_curses' when trying to import blessings

前端 未结 4 2112
死守一世寂寞
死守一世寂寞 2021-02-05 04:46

I am trying to run this:

from blessings import Terminal

t = Terminal()

print (t.bold(\'Hi there!\'))
print (t.bold_red_on_bright_green(\'It hurts my eyes!\'))
         


        
4条回答
  •  被撕碎了的回忆
    2021-02-05 05:05

    It's a known bug on windows. It has been open for 5 years, so don't hold your breath.

    The unofficial curses build is not enough since it also requires fcntl, which isn't likely to be ported anytime soon.

    • Issue #21

提交回复
热议问题