我正试图用nfcpy在树莓圆周率上安装PN532_NFC_帽子,但模块有问题
到目前为止我所做的:
我已经在我的Raspberry Pi上安装了nfcpy,只需在终端上执行此操作即可
$ pip install -U nfcpy
我已经用这个命令验证了安装
$ python -m nfc --search-tty
到目前为止,nfcpy可以找到我的NFC阅读器
然后我从github克隆了这些示例 用命令
pi@raspberrypi: git clone https://github.com/nfcpy/nfcpy.git
并进入示例文件夹
pi@raspberrypi:~/nfcpy/examples $
发生了什么:
nfcpy有一些示例程序,但当我尝试运行它们时,它们会返回各种错误
例如,我在其中一个示例Tagtool.py上运行此命令
python3 tagtool.py
我明白了
Traceback (most recent call last):
File "tagtool.py", line 29, in <module>
import ndef
ModuleNotFoundError: No module named 'ndef'
其他示例返回关于找不到名为nfc的模块的错误
我做错了什么
目前没有回答
相关问题 更多 >
编程相关推荐