我试图通过运行pip2 install python-can来安装一个包(Python),并得到以下错误:
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)有什么建议吗?我在Ubuntu 16.04。
发布于 2019-07-22 23:35:28
最新答案:添加了关于在Windows上安装python的信息。
请参阅https://python-can.readthedocs.io/en/master/installation.html#windows-dependencies
请注意,由于IO特性,当在Windows机器上使用python时,它将需要额外的驱动程序或后端引擎。首先从安装链接中安装列出的选项之一。然后尝试pip安装python。
带有pip的安装罐: pip install python-can
注意以下段落:
“由于您很可能希望与某些硬件进行接口,您可能还必须安装平台依赖项。请务必检查CAN接口模块中的硬件的任何其他细节。”
窗口依赖项: Kvaser (众多选项之一) 要安装Python,可以使用Kvaser CANLib SDK作为后端:安装最新的稳定版本。安装Kvaser的最新Windows CANLib驱动程序。测试Kvaser自己的工具是否工作,以确保驱动程序已正确安装,硬件是否正常工作。
原始答案:
(原始答案直接针对错误消息。提供帮助,以排除与Python的诅咒库安装问题相关的潜在错误。)
如果您使用的是,那么诅咒似乎是Ubuntu内置3.6+的一部分,因此没有什么可安装的。初始化会话以开始使用它。
import curses
stdscr = curses.initscr()https://stackoverflow.com/questions/57153419
复制相似问题