简体   繁体   English

导入诅咒在Visual Studio 2017 Python中不起作用

[英]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. 我在Visual Studio中有这个项目,但是当我尝试导入curses时,即使它自动完成,也会出现一个错误,提示curses不存在。
Do any of you know how to fix that glitch in visual studio? 你们中有人知道如何在Visual Studio中解决该故障吗?

I guess you are using windows, right? 我猜您正在使用Windows,对吗? Curses is linux library, you won't be able to import it directly. Curses是linux库,您将无法直接导入它。 There are alternatives. 还有其他选择。 More info on alternatives you can find here 您可以在此处找到有关替代品的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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