我在Windows 7(x64)机器上安装了运行的Python 2.7/3.4.我想在Windows上测试诅咒.
Curses已安装但不工作:
>>> import curses
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Tools\Python3.4.2\lib\curses\__init__.py", line 13, in <module>
from _curses import *
ImportError: No module named '_curses'
因此,Python 3.4的Windows installer安装了带有未解析依赖项的诅咒.有人可以把这叫做虫子...
好吧,我查看了UniCourses.这是PDCurses美元的包装纸:
UniCourses是Python 2的包装器.x/3.它在所有平台(MS Windows、Linux和Mac OS x)上提供了一组统一的Curses函数,语法与最初的NCurses相近.为了在微软Windows系统上提供诅咒功能,它包装了PDCurses个.
通过pip3
安装UniCourses会导致错误:
C:\Users\Paebbels>pip3 install UniCurses
Downloading/unpacking UniCurses
Could not find any downloads that satisfy the requirement UniCurses
Some externally hosted files were ignored (use --allow-external UniCurses to allow).
Cleaning up...
No distributions at all found for UniCurses
Storing debug log for failure in C:\Users\Paebbels\pip\pip.log
Python的UniCourses站点上指向SourceForge的链接已失效.SourceForge通过手动搜索再次找到了UniCurses for Python个.
但是,UniCourses 1.2安装程序在我的Windows注册表中找不到任何Python安装.(可以使用Python 2.7.9和Python 3.4.2).
我还研究了公共领域的诅咒(PDCurses).PD治愈率3.4是从2008年底开始的.所以它已经7岁了.我不相信它能在Windows 7、Windows 8.1或Windows 10上运行.
Is there any way to get curses running on Windows with Python.
(Windows Python,而不是CygWin Python!)