ImportError: cannot import name ‘getStringIO‘ from ‘reportlab.lib.utils‘

ImportError: cannot import name ‘getStringIO‘ from ‘reportlab.lib.utils‘,第1张

python 运行出现:ImportError: cannot import name ‘getStringIO’ from ‘reportlab.lib.utils’ (C:\Users\admin\Desktop\test\SuperMarket_Management_System_Django\venv\lib\site-packages\reportlab\lib\utils.py)


解决办法:reportlab版本问题,Change reportlab to version 3.6.6

pip install reportlab==3.6.6

参考:https://github.com/xhtml2pdf/xhtml2pdf/issues/589

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/791134.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-05
下一篇2022-05-05

发表评论

登录后才能评论

评论列表(0条)

    保存