简体   繁体   English

Windows-curses在ubuntu上安装

[英]Windows-curses install on ubuntu

I am trying to install a package (python-can) by running pip2 install python-can and I get the following errors: 我试图通过运行pip2 install python-can来安装软件包(python-can),但出现以下错误:

Collecting windows-curses (from python-can)
ERROR: Could not find a version that satisfies the requirement windows-curses (from python-can) (from versions: none)

Error: No matching distribution found for windows-curses (from python-can)

Any suggestions? 有什么建议么? I am on Ubuntu 16.04. 我在Ubuntu 16.04上。

If you are using Python 3.6+, curses seem to be a part of the built-in Python for Ubuntu OS so there is nothing to install. 如果您使用的是Python 3.6+,则curses似乎是Ubuntu OS内置Python的一部分,因此无需安装任何内容。 You initialize a session to start using it. 您初始化会话以开始使用它。

import curses
stdscr = curses.initscr()

https://docs.python.org/3/howto/curses.html https://docs.python.org/3/howto/curses.html

For Python 2.7, you may need ncurses. 对于Python 2.7,您可能需要ncurses。

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

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