我有一个带有几个输入的CAN总线(PCAN)。我尝试读取python中的输入,并将它们打印在控制台上。我从总线获得的第一条消息是正确的,但是如果我更改输入的状态,消息中的数据就不会改变,并且会一直吐出它得到的第一个数据。在PCAN视图中,我可以看到数据的变化,所以它不是硬件故障。import can
bus = can.interface.Bus(bustype='pcan', channel='PCAN_USBBUS1', bitrate=500000)
我试图通过运行pip2 install python-can来安装一个包(Python),并得到以下错误: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