'why python curses doesent work in this code? ModuleNotFoundError: No module named '_curses' [duplicate]

I download python 3.9 64 bit and for IDE I using pycharm I did totally everything what I suppose to do for curses from this link Text I downloaded and install curses and in cmd I did this to pip install curses-windows and when I run code I still get this error:

Traceback (most recent call last):
File "C:\Users\kretz\OneDrive\Desktop\python programi\snakes\main.py", line 1, in <module>
import curses
File "C:\pytohn\lib\curses\__init__.py", line 13, in <module>
from _curses import *
ModuleNotFoundError: No module named '_curses'

this is the code

import curses


curses.initscr()
win = curses.newwin(20, 60, 0, 0)
win.keypad(1)
curses.noecho()
curses.curs_set(0)
win.border(0)
win.nodelay(1)


score = 0
while True:
    event = win.getch()
    curses.endwin()
    print(score)


Solution 1:[1]

Run this in terminal: pip install windows-curses and it should work.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 amd