在OSX Lion 10.7.3上安装pyUSB 0.4.3 [英] Install pyUSB 0.4.3 on OSX Lion 10.7.3

查看:86
本文介绍了在OSX Lion 10.7.3上安装pyUSB 0.4.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在运行Xcode 4.3(已安装命令行工具的新Mac App Store .app)的Mac OS X Lion 10.7.3上安装pyusb 0.4.3. 当我尝试"python setup.py install"时,我得到此错误的长清单,以错误:命令'llvm-gcc-4.2'失败,退出状态为1": http://pastebin.com/R8id7Qf7

I'm trying to install pyusb 0.4.3 on Mac OS X Lion 10.7.3 running Xcode 4.3 (the new Mac App Store .app with command line tools installed). When I try to "python setup.py install" I get this long list of error ending with "error: command 'llvm-gcc-4.2' failed with exit status 1": http://pastebin.com/R8id7Qf7

pyUSB 1.0alpha2安装正常.

pyUSB 1.0alpha2 installs fine.

有什么想法吗?我有点Unix菜鸟,所以请相应地解释一下.

Any ideas? I'm a bit of Unix noob so please explain accordingly.

谢谢

推荐答案

您似乎没有安装libusb.

It looks like you don't have libusb installed.

在这里尝试: http://www.anyma.ch/blogs/research/2011/08/13/libusb-for-macosx-lion-10-7/

并阅读评论,该部分有更新.

And read the comments, there's an update in that section.

顺便说一句,

您是否尝试过使用:

sudo easy_install pyusb

或:

sudo pip install pyusb

Easy_install是Lion附带的,但不是pip,您可以安装它:

easy_install comes with Lion, but not pip, you can install it:

sudo easy_install pip

这篇关于在OSX Lion 10.7.3上安装pyUSB 0.4.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆