Python Forum
Uninstall unused COM ports windows 10
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uninstall unused COM ports windows 10
#1
I'm very new to python and I haven't gotten very far with my code but below is what I have so far

import serial.tools.list_ports as port_list


ports = list(port_list.comports())
for p in ports:
    print (p)
this gives me the list of com ports that are active but I have com ports that are being installed but nothing is using it

Does anyone have any idea how I can return all com ports that are installed but not used.
Larz60+ write Sep-22-2021, 03:16 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts. Thanks
Reply
#2
see if this helps: https://stackoverflow.com/a/14224477
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Impossible to cleanly uninstall Python 3.8.9 Ftaniere 2 1,647 Sep-01-2022, 10:38 AM
Last Post: snippsat
  Mido and virtual midi ports dore_m 2 4,523 Dec-27-2020, 06:02 AM
Last Post: dore_m
  Handling Multiple USB ports in Python samalpramod 0 4,364 Aug-01-2020, 07:40 PM
Last Post: samalpramod
  How to fully uninstall Python from Windows? Winfried 6 10,350 May-27-2020, 10:16 PM
Last Post: snippsat
  I can't uninstall chatterbot? Piethon 9 6,647 Jul-20-2019, 09:42 AM
Last Post: Piethon
  Get Serial ports via Function shift838 1 3,888 Dec-10-2018, 03:52 AM
Last Post: Alfalfa
  Do I need to uninstall my current Python distribution (3.7) to install Anaconda? Tim 2 23,111 Jul-10-2018, 03:03 PM
Last Post: Tim
  redefinition of unused function bb8 16 10,576 Feb-22-2018, 12:36 PM
Last Post: bb8

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020