Go to raspi-config and option [3 Interface Options] Turn on P4 SPI Run the following from your command line: > lsmod | grep spi (you should see "spi_bcm2835" in the response). Then run the following two commands: > sudo pip3 install spidev > sudo pip3 install mfrc522