Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Error installing py-spidev

290 Views - Created 28/04/2022

28/04/2022

Posted by:
Miker

Miker Avatar

Location:
Cambridge

CLI dump:

pi@raspberrypi:~ $ git clone https://github.com/doceme/py-spidev.git
Cloning into 'py-spidev'...
remote: Enumerating objects: 251, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 251 (delta 12), reused 9 (delta 3), pack-reused 223
Receiving objects: 100% (251/251), 91.45 KiB | 227.00 KiB/s, done.
Resolving deltas: 100% (137/137), done.
pi@raspberrypi:~ $ sudo python3 setup.py install
python3: can't open file 'setup.py': [Errno 2] No such file or directory
pi@raspberrypi:~ $

Where should 'setup.py' be located and how should be installed there?

28/04/2022

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

The setup.py file should be located in the py-spidev directory in your pi home directory.

If you run the command "cd ~/py-spidev" that should take you to the correct directory. You can then run "sudo python3 setup.py install" to install the SPI python module.

Sign in to post your reply

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.