简体   繁体   中英

import curses doesn't work in visual studio 2017 python

I have this project in Visual Studio, but when I try to import curses, even though it autocompletes it, there is a error that says curses doesn't exist.
Do any of you know how to fix that glitch in visual studio?

I guess you are using windows, right? Curses is linux library, you won't be able to import it directly. There are alternatives. More info on alternatives you can find here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM