Question

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.

Was it helpful?

Solution

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)

OTHER TIPS

Ok..I found the answer myself.

I found this link wherein the whole procedure is outlined.Providing a gist here:

1.Download,extract and install libusb 1.0.9 from here:link

2.Download,extract and install pyusb 1.0 from here :link. This link also contains a link to a tutorial for pyusb.

This worked for me:

First install libusb: sudo apt-get install python libusb-1.0-0

Then install pyusb: Download and extract. Go into the pyusb directory: cd /usr/lib/python2.7/pyusb-1.0.0b2/ From there, run the setup.py (./setup.py, or python setup.py) with the argument install. Should look like this $ sudo ./setup.py install

This should all be done as root user (use sudo).

Good luck.

I know this is an old thread and OP asked about Ubuntu 13.10 but for future visitors, pyusb is available from apt since 14.04. See packages.ubuntu.com.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top