从导入绘图区域时遇到问题mlxtend.打印. 你知道吗
我已经正确安装了mlxtend,我可以在python3中导入它而没有问题。你知道吗
from mlxtend.plotting import plot_decision_regions Traceback (most recent call last): File "", line 1, in File "/home/marianna/.local/lib/python3.5/site-packages/mlxtend/plotting/init.py", line 15, in from .heatmap import heatmap File "/home/marianna/.local/lib/python3.5/site-packages/mlxtend/plotting/heatmap.py", line 74 raise AssertionError(f'len(row_names) (got {len(row_names)})' ^ SyntaxError: invalid syntax
我也有同样的错误,只是升级你的python版本到3.7 读取错误在的文件中mlxtend.plotting.heatmap热图.py,其中使用f前缀进行格式化,这是3.7版的一项功能。你知道吗
相关问题 更多 >
编程相关推荐