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

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

猜你喜欢

转载自blog.csdn.net/qq_22938603/article/details/124473441