I'am trying to run
pip install curses
in the CMD put it returns the error:
ERROR: Could not find a version that satisfies the requirement curses (from versions: none)
ERROR: No matching distribution found for curses
I am using Python 3.12.0 on VS Code and trying to use the curses package but can't install it , I installed the package windows-curses pip install windows-curses in the CMD, but it didn't work as expected and couldn't call it like the videos on the internet like:
curses.curs_set(0)
I also tried pip3 install curses, but it didn't work.
So probably there is a difference between curses and windows-curses.
For you can use
pip install windows-cursesto install package.Then use python codes
import cursesto use it.Please note that even though you installed a package called
windows-curses, you still import it usingimport curses. This is becausewindows-cursesis a Windows-compatible version of thecursesmodule, not a separate module.