ubuntupyusb

How to install pyusb on ubuntu?


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.


Solution

  • Use --pre

    pip install --pre pyusb
    

    The --pre flag tells pip to install pre-releases, as pyusb has not reached stable a release yet (1.0.0b2 = beta2).

    Update: PyUSB is now stable, you can install simply with pip install pyusb.