【发布时间】:2012-11-01 06:39:54
【问题描述】:
我是 Python 新手。我正在尝试在 Windows 中运行this script (gencards.py),但他说我需要运行“qrencode 命令”。我假设这意味着this library,或者更可能是windows port。
在python脚本中,他是这样使用qrencode的:
os.system("qrencode -o .tempqr.png -s 30 -m 0 -l H " + serial)
我已经通过可执行文件安装了 windows 库,我将 qrcode.exe 添加到 PATH,并尝试编辑 gencards.py 以使用“qrcode”或“qrcode.exe”,但我总是得到
'qrcode' is not recognized as an intrnal or external command, operable program or batch file.
我做错了什么?
我在 Windows7 x64 上使用 Python 2.7。
【问题讨论】:
标签: python windows command external