Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Error installing py-spidev

The ADC-DAC Pi Zero is a 2 Channel ADC and 2 Channel DAC for the Raspberry Pi

28/04/2022

Posted by:
Miker

Miker Avatar

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

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.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout