Hi, Well if you want pyusb to be available in python3 you can just change your command to:
sudo python3 setup.py install Using pip is the better solution though. Pip is a package manager for python and can download packages for you and can also do some dependency resolution. Parallel installations of python2 and python3 are actually the standard in most linux distributions. Since python2 was considered the default all commands related to python3 have the "3" attached to them. This is also true for pip so that pip is the installation command for python2 and pip3 is the command for python3. have fun Kevin On 18.03.2015 20:37, Michel Allaire wrote: > Thank you > > I have installed pyusb with the following command as shown in the readme file > of pyusb: > > sudo python setup.py install > > I am not familiar with the pip concept. > > Regards > > Michel > > > > > -----Message d'origine----- > De : Jim Easterbrook [mailto:j...@jim-easterbrook.me.uk] > Envoyé : 18 mars 2015 08:42 > À : pyusb-users@lists.sourceforge.net > Objet : Re: [pyusb-users] Dual installation of Python in Raspberry Pi > > On 18/03/15 12:18, Michel Allaire wrote: >> I want to use pyusb in a Raspberry pi which come with two >> installations of Python: 2.x and 3.x. >> >> The problem is that pyusb installs in a way that it is only working >> in version 2.X and not in version 3.x in which I have the following >> error message >> cd pi >> Is there a way to change the behavior of pyusb installer. > How are you installing pyusb? If you use pip to install from PyPI you just > need to run the python3 version of pip: 'sudo pip3 install pyusb' ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users