Naz*_*hun 21 python windows curses module python-curses
我试图运行这个:
from blessings import Terminal
t = Terminal()
print (t.bold('Hi there!'))
print (t.bold_red_on_bright_green('It hurts my eyes!'))
with t.location(0, t.height - 1):
print ('This is at the bottom.')
Run Code Online (Sandbox Code Playgroud)
这是第一个例子:https://pypi.python.org/pypi/blessings.
但是,我收到此错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\?????\AppData\Local\Programs\Python\Python35- 32\lib\site-packages\blessings\__init__.py", line 5, in <module>
import curses
File "C:\Users\?????\AppData\Local\Programs\Python\Python35-32\lib\curses\__init__.py", line 13, in <module>
from _curses import *
ImportError: No module named '_curses'
Run Code Online (Sandbox Code Playgroud)
我的系统是win10 x64.
小智 9
同时 - Windows 10上的Python 2.7.15 - curses支持可以通过以下方式添加:
pip install windows-curses
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
22573 次 |
最近记录: |