无法使用“d2xx” python 中的 FTDI 芯片库
从此网站下载 d2xx 库 在使用 python2.6 的 Windows7 上运行良好
提取的文件列表。 在 Ubuntu 10.10(Maverick Meerkat) 中我无法继续。 如何安装文件以便我可以导入 d2xx 库
$make
Makefile:1: Makefile.conf: 没有这样的文件或目录
make:* 没有创建目标“Makefile.conf”的规则。停止。
$sudo python setup.py install
回溯(最近一次调用最后一次):
文件“setup.py”,第 4 行,位于
来自conf导入*
导入错误:没有名为conf的模块
我使用的是python 2.6。无法继续安装。 !!
Downloaded the d2xx library from this site
Works fine on Windows7 with python2.6
List of extracted files.
In Ubuntu 10.10(Maverick Meerkat) I cannot proceed further.
how to install the files so that I can import d2xx library
$make
Makefile:1: Makefile.conf: No such file or directory
make: * No rule to make target `Makefile.conf'. Stop.
$sudo python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in
from conf import *
ImportError: No module named conf
I am using python 2.6. Cant proceed further with the installation. !!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 libusb 的 libftdi 驱动程序具有可在 Linux 中工作的 python 绑定。
函数 api 略有不同,但会完成相同的事情。如果重要的话,libftdi 和 libusb 也可以在 Windows 上使用。
http://idle-logic。 com/2010/12/13/libftdi-v0-18-with-ubuntu-lucid-lynx/
这家伙的博客描述了一个他使用 python 包装的项目他使用 libftdi 库通过 USB 对 FPGA 进行编程。
The libftdi drivers which use libusb have python bindings which will work in linux.
The function api's are slightly different but will accomplish the same thing. libftdi and libusb can also be used on windows if that's important.
http://idle-logic.com/2010/12/13/libftdi-v0-18-with-ubuntu-lucid-lynx/
This guy's blog describes a project which he uses python wrapped libftdi libraries which he uses to program an FPGA over USB.
似乎 org/pyusb" rel="nofollow">PyUSB FTDI 驱动程序接口目前仅提供对 Windows 的支持。
It appears that the PyUSB interface for FTDI drivers only provides support for Windows at the moment.
虽然 PyUSB 仅在 Windows 上得到正式支持,但也可以为 Linux 构建它。有三个例程没有 Linux 等效项(好吧,也许它们有,但我没有仔细寻找),但您可能不需要它们。请参阅我的 关于使用 PyUSB 的帖子在树莓派上。
While PyUSB is only officially supported on Windows, it's possible to build it for linux as well. There are three routines that didn't have a linux equivalent (well, maybe they do but I didn't look to hard), but you may not need them. See my post on using PyUSB on Raspberry Pi.