如何在ubuntu上安装pyusb?
我尝试过,但在shell上收到以下消息:如何在ubuntu上安装pyusb?,ubuntu,pyusb,Ubuntu,Pyusb,我尝试过,但在shell上收到以下消息: sudo-apt-get-install-python-pip: vineet@vineet:~$ sudo pip install --upgrade pyusb Downloading/unpacking pyusb Could not find a version that satisfies the requirement pyusb (from versions: 1.0.0a2, 1.0.0a2, 1.0.0a3, 1.0.0a3, 1
sudo-apt-get-install-python-pip
:
vineet@vineet:~$ sudo pip install --upgrade pyusb
Downloading/unpacking pyusb
Could not find a version that satisfies the requirement pyusb
(from versions: 1.0.0a2, 1.0.0a2, 1.0.0a3, 1.0.0a3, 1.0.0b1)
Cleaning up...
No distributions matching the version for pyusb
Storing complete log in /home/vineet/.pip/pip.log
我想使用pyusb1.0(或者更高版本,如果有的话(我是新手)),它是用python编写的。我还需要
libusb
来运行pyusb
?请告诉我如何下载!我在这两种情况下都尝试了失败。我使用的是Ubuntu 13.10,所以请做出相应的回应。好的。我自己找到了答案
我发现其中概述了整个过程。这里提供了要点:
1.从此处下载、解压缩并安装libusb 1.0.9:
2.从此处下载、提取和安装pyusb 1.0:。此链接还包含指向pyusb教程的链接。使用--pre
pip install --pre pyusb
--pre
标志告诉pip安装预发行版,因为pyusb不被认为是稳定的写版本ATM(1.0.0b2=beta2)这对我来说很有效:
首先安装libusb:sudo-apt-get-install-python-libusb-1.0-0
然后安装pyusb:并解压缩。
进入pyusb目录:cd/usr/lib/python2.7/pyusb-1.0.0b2/
从那里,使用install参数运行setup.py(./setup.py或python setup.py)。应该看起来像$sudo./setup.py安装
这一切都应该以root用户的身份完成(使用sudo)
祝你好运。我知道这是一个老话题,OP询问了Ubuntu 13.10,但对于未来的访问者,
pyusb
从14.04开始可以从apt
获得。看