No module named _curses issues when using Python's curses library under Windows

Source: Internet
Author: User
Solve

First, the root cause of this problem is that the curses library does not support Windows. So after we download the python (Python comes with the curses library), although we can see the curses library in the python directory \lib , we can't use it. will produce the error as above. It is also true that you can find the from _curses import * in the prompt file __init__ file.

To solve this problem, we need to use a unofficial curses (unofficial curses library) instead of Python's own curses library. That is WHL bag.

In my own case, I downloaded the python3.6.4 version, in https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses中找到 curses, And then download the WHL package that corresponds to your Python version (like mine is CURSES-2.2-CP36-CP36M-WIN32.WHL), I'm windows10-64bit, and I started thinking that I needed to download the AMD64 version, The test found that the use of that version when the installation will be reported an environment does not support the error, after changing this is the right.

No module named _curses issues when using Python's curses library under Windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.