Problema:
Ao tentar executar um script Python usando PyVISA com um instrumento USB, você vê a seguinte mensagem de erro:
pyvisa_error.txt
ValueError: Please install PyUSB to use this resource type.
No module named 'usb'Solução
Em distribuições Linux como Ubuntu, você pode corrigir isso usando
install_pyusb.sh
sudo apt-get -y install python3-usbIsso instalará o pacote Python3 usb e os pacotes de sistema libusb.
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow