Como solucionar PyVISA ValueError: Please install PyUSB to use this resource type

Problema:

Al trying de run un Python script usando PyVISA con un USB instrument, ves el siguiente mensaje de error:

pyvisa_error.txt
ValueError: Please install PyUSB to use this resource type.
No module named 'usb'

Solucion

En Linux distributions tales como Ubuntu, puedes solucionar esto usando

install_pyusb.sh
sudo apt-get -y install python3-usb

Esto installara el Python3 usb package y los libusb system packages.


Echa un vistazo a artículos similares por categoría: Python