How can I fix “[Error 6] The handle is invalid.” with PySerial

前端 未结 5 2017
一个人的身影
一个人的身影 2020-12-11 04:25

I\'m trying to connect to my phone from my Windows 7 PC using PySerial with the following code:

import wmi
import serial

c = wmi.WMI()
modem = c.query(\"SEL         


        
5条回答
  •  Happy的楠姐
    2020-12-11 05:18

    Use pyserial version 2.4:

    http://sourceforge.net/projects/pyserial/files/pyserial/2.4/pyserial-2.4.win32.exe/download

提交回复
热议问题