Install pyUSB 0.4.3 on OSX Lion 10.7.3

2019-02-15 23:18发布

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

2条回答
2楼-- · 2019-02-16 00:02

You should install libusb. Personnaly I used port :

port install libusb
查看更多
叼着烟拽天下
3楼-- · 2019-02-16 00:13

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
查看更多
登录 后发表回答