Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named '_curses'

Traceback (most recent call last):
  File "c:\the stuff\DarkOS-main\bootscreen.py", line 21, in <module>
    from curses import *
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1008.0_x64__qbz5n2kfra8p0\lib\curses\__init__.py", line 
13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'

How do you get '_curses' on windows?

Some code:

from curses import *
like image 712
aanginer Avatar asked Jul 19 '26 08:07

aanginer


1 Answers

It is very simple. You need to install the library by running pip install windows-curses

You could type the above command in command prompt for Vscode or on the terminal in Pycharm

like image 178
Soundwave Avatar answered Jul 21 '26 21:07

Soundwave



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!