Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is curses in python 3.9.5?

Tags:

python

I just updated from 3.6 and curses is nowhere to be found in pip list. When I try to run my program I get

Traceback (most recent call last):
  File "/media/HD/Documents/Python/program/menu.py", line 1, in <module>
    import curses
  File "/usr/local/lib/python3.9/curses/__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'

"pip3 install curses" gives me

ERROR: Could not find a version that satisfies the requirement curses (from versions: none)
ERROR: No matching distribution found for curses

Any ideas? Does python not come with curses anymore?

Edit: This is in Ubuntu

like image 953
Ben Alan Avatar asked Oct 24 '25 05:10

Ben Alan


1 Answers

I solved this issue by using below command. It adds support for the standard Python curses module on Windows. Read more about it here.

pip install windows-curses

like image 115
EdwardFunnyHands Avatar answered Oct 25 '25 18:10

EdwardFunnyHands



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!