从导入绘图区域时出错mlxtend.打印

2024-10-01 02:35:37 发布

您现在位置:Python中文网/ 问答频道 /正文

从导入绘图区域时遇到问题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


Tags: infrompyimporthomelibpackageslocal
1条回答
网友
1楼 · 发布于 2024-10-01 02:35:37

我也有同样的错误,只是升级你的python版本到3.7 读取错误在的文件中mlxtend.plotting.heatmap热图.py,其中使用f前缀进行格式化,这是3.7版的一项功能。你知道吗

conda install -c anaconda python=3.7

相关问题 更多 >