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')
有没有别的东西,我可以检查?
发现