Install pyUSB 0.4.3 on OSX Lion 10.7.3

倖福魔咒の 提交于 2019-11-30 20:27:30

问题


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 installs fine.

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

Thanks


回答1:


It looks like you don't have libusb installed.

Try here: 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.

BTW,

Have you tried using:

sudo easy_install pyusb

or:

sudo pip install pyusb

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

sudo easy_install pip



回答2:


You should install libusb. Personnaly I used port :

port install libusb


来源:https://stackoverflow.com/questions/9629333/install-pyusb-0-4-3-on-osx-lion-10-7-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!