I am using Python 2.5 in Windows and I am trying import curses.ascii.*
to a django project.
Code: from curses.ascii import *
Error: No module named _curses
.
Any suggestion?
By the way, the only function I need to use is isalpha()
...
I am using Python 2.5 in Windows and I am trying import curses.ascii.*
to a django project.
Code: from curses.ascii import *
Error: No module named _curses
.
Any suggestion?
By the way, the only function I need to use is isalpha()
...
Copyright © 2021 Jogjafile Inc.
You didn't say which platform you are on, but there is probably a package which will install the curses bindings for you.
In debian/ubuntu for example it is part of the default python install
If you built the Python yourself, you may be missing the libcurses-dev
If you are on windows maybe check out this wcurses package
Otherwise curses is not supported on windows however there is a Console module
Edit: since the OP is just using
isalpha
Strings have their own isalpha() method already
The one with curses only works on single characters