For you can use pip install windows-curses to install package.
Then use python codes import curses to use it.
Please note that even though you installed a package called windows-curses, you still import it using import curses. This is because windows-curses is a Windows-compatible version of the curses module, not a separate module.
For you can use pip install windows-curses to install package.
Then use python codes import curses to use it.
Please note that even though you installed a package called windows-curses, you still import it using import curses. This is because windows-curses is a Windows-compatible version of the curses module, not a separate module.
From another post:
Currently the latest version of windows-curses is 2.2.0 and it provides wheels for Python 3.6-3.8 and no source code.
So basically you either have to downgrade your Python installation, or use a different package I suppose.
» pip install windows-curses
Videos
I'm following a beginner project tutorial that requires the curses module and using the pip command in cmd "pip install windows-curses" doesn't work and spits out the following in the terminal:
ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)
ERROR: No matching distribution found for windows-curses
I can install other stuff using the pip install command but not this specific module, does anyone know why this could happen? what are the possible solutions?
You can use curses cross-platform (Windows, MacOS, GNU/Linux) if you install manually for Windows or like other package in others.
Install wheel package. If you need more info about wheel click here.
Go to this repository.
Download a package with your python version, in example for python 3.4:
curses-2.2-cp34-none-win_amd64.whlInstall it (this command if for windows, in GNU/Linux install like other package)
python -m pip install curses-2.2-cp34-none-win32.whlJust include in your python script:
import curses
You can use curses wrapper for python. Works in Fedora 25 in all terminals, and Windows 10 using git bash, powershell, or cmd.
Update:
- An alternative to curses in Windows here.
- Console user interface in Windows here.
- An interesting tutorial here.
Now we can easy install on python 3.7 using pip install windows-curses
I want to install windows curses but don't know how to do it ,Please give clear step by step procedure of installing curses in windows.
I am using windows 10,Pycharm community edition,Python 3.9.
» pip install Uni-Curses