我在raspberry pi上开始使用reportlab时遇到了麻烦。我的pi声称reportlab-3.5.59已成功安装。但是,下面建议的启动测试程序在第1行失败,并显示ModuleNotFoundError:没有名为'reportlab‘的模块
有什么想法吗?
从reportlab.pdfgen导入canvas def hello(c):c.drawstring(100,100,"Hello pdf world") c= canvas.Canvas("hello.pdf") hello(c) c.showPage() c.save()
发布于 2021-01-06 20:01:24
哦!我找到了答案。我需要用pip3而不是pip来安装。
https://stackoverflow.com/questions/65595369
复制相似问题