After installing windows_curse, it shows ImportError: cannot import name 'resizeterm' from 'curses'

39 Views Asked by At

I am testing pv3d and have downloaded packages already. In testing, I've downloaded it using pip install windows_curses, but it displayed ImportError: cannot import name 'resizeterm' from 'curses' when I was running from curses import resizeterm, what should I do to solve that?

The requirement of windows curses has already satisfied, here I would like to imort curses normally.

1

There are 1 best solutions below

1
On BEST ANSWER

It's because you're not importing the right object. It should be

from curses import resize_term

and not

from curses import resizeterm