0
你好@codedstructure,pylibftdi不工作python3,做工精細的python2.7
我能夠導入pylibftdi模塊,並使用Python(2.7)列出我的FTDI設備和使用PIP 3已經安裝pylibftdi,但運行list_devices例輸出什麼:
[email protected]:~ $ python -m pylibftdi.examples.list_devices
FTDI:FT230X Basic UART:DA00TWHT
FTDI:FT230X Basic UART:DA00TWHN
FTDI:FT230X Basic UART:DA00TN7R
[email protected]:~ $ python3 -m pylibftdi.examples.list_devices
[email protected]:~ $
執行Python 3.4,我可以給安裝libftdi:
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylibftdi import Driver; print(Driver().libftdi_version())
libftdi_version(major=1, minor=0, micro=0, version_str=b'1.0', snapshot_str=b'v1.0')
有沒有別的東西,我可以檢查?
發現