How do I get curses to work in Python 3.2 on win-64?

Brian Curtin brian.curtin at gmail.com
Mon Oct 17 10:42:40 EDT 2011


On Sun, Oct 16, 2011 at 11:16, Jan Sundström <sundstromen at gmail.com> wrote:
> On 16 Okt, 06:59, Christoph Gohlke <cjgoh... at gmail.com> wrote:
>> On Oct 15, 1:13 pm, Jan Sundström <sundstro... at gmail.com> wrote:
>>
>>
>>
>> `import curses` should work. What exactly is the error message? Does
>> `import curses` work outside your program/program directory?
>>
>> The curses package is part of the standard library and usually
>> installed in Python32\Lib\curses. On Windows the  _curses.pyd files is
>> missing in the standard distribution. curses-2.2.win-amd64-py3.2.exe
>> installs the missing _curses.pyd file into Lib/site-packages.
>
> Thanks for the tip to check in what library it works, that set me on
> track tofind a silly mistake that I had done. Now everything works
> fine.
>
> But, how come that the Windows distribution for Python doesn't include
> the _curses.pyd file?

It's not a standard library module on Windows. The curses Christoph
mentioned is built on the PDCurses library, which is an external
project.



More information about the Python-list mailing list