Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Python 2.7 环境中运行 spcchart 并出现错误“ValueError: Invalid PI name 'xml'”。附上错误消息,如果有人能告诉哪里出了问题以及如何解决它,谢谢!
这是包“pygal”中的一个已知错误。该错误已修复,因此升级到最新版本应该可以解决该问题:
pip list --outdated pip install pygal --upgrade
(来源)
检查第一个命令是否列出了 pygal 以确认它已安装且已过期。然后使用第二个命令对其进行升级。