How to install pyusb on ubuntu?

Flame of udun picture Flame of udun · Feb 26, 2014 · Viewed 18.5k times · Source

I tried this link, but got the following message on 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.0.0b1)
Cleaning up...
No distributions matching the version for pyusb  
Storing complete log in /home/vineet/.pip/pip.log

I want to use pyusb 1.0(or above,if it exists(i am a newbie)) which is written in python. Also will I need libusb to run pyusb? Please tell me how to download that too! I have tried an failed in both cases.I am using Ubuntu 13.10 so please respond accordingly.

Answer

Beau Barker picture Beau Barker · Aug 15, 2014

Use --pre

pip install --pre pyusb

The --pre flag tells pip to install pre-releases, as pyusb is not considered as stable release ATM of writing (1.0.0b2 = beta2)