我的问题是MFRC522 RFID阅读器的Python脚本无法启动。我找不到此问题的任何解决方案
我尝试过本教程:https://pimylifeup.com/raspberry-pi-rfid-rc522
启动脚本时出现此错误:
pi@pi-d339203c:~/pi-rfid $ python3 Read.py
Traceback (most recent call last):
File "Read.py", line 5, in <module>
reader = SimpleMFRC522()
File "/usr/local/lib/python3.5/dist-packages/mfrc522/SimpleMFRC522.py", line 14, in __init__
self.READER = MFRC522()
File "/usr/local/lib/python3.5/dist-packages/mfrc522/MFRC522.py", line 131, in __init__
self.spi.open(bus, device)
FileNotFoundError: [Errno 2] No such file or directory
您不是说您正在使用Windows或Linux,但是错误消息是Windows IOError消息使用的格式
您的路径以“ / usr / local”开头。它不在Windows上,而在Linux上。因此,您只需要固定路径以匹配您的操作系统即可。