我无法在 Jupyter Python3 笔记本中安装 mlextend 包
我已经尝试过 pip install mlxtend 或 pip3 install mlxtend,但要么它在 Python2 上出于某种原因显示语法错误,要么它告诉我在 python3 的命令行上尝试。我尝试在命令行上安装它,但它显示“错误:找不到满足 mlextend 要求的版本(来自版本:无)错误:找不到 mlextend 的匹配分布”
from mlxtend.frequent_patterns import apriori
from mlxtend.frequent_patterns import association_rules
ModuleNotFoundError Traceback (most recent call
last)
<ipython-input-3-73c97be96c5f> in <module>()
----> 1 from mlxtend.frequent_patterns import apriori
2 from mlxtend.frequent_patterns import association_rules
ModuleNotFoundError: No module named 'mlxtend'`enter code here`
原文由 Jayesh Kumar 发布,翻译遵循 CC BY-SA 4.0 许可协议
您需要使用以下命令:
您当前正在尝试安装
mlextend
(不存在)而不是mlxtend
。