我无法在Jupyter Python3笔记本中安装mlextend包。
我已经尝试过pip install mlxtend或pip3 install mlxtend,但它要么在Python2上显示语法错误,要么告诉在python3的命令行上尝试。我尝试过在命令行上安装它,但它显示“错误:找不到满足要求的版本mlextend (from versions: none)错误:没有找到匹配的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`发布于 2019-07-09 16:14:06
您需要使用以下命令:
pip install mlxtend您当前正在尝试安装mlextend (不存在),而不是mlxtend。
发布于 2020-01-05 07:35:04
最近我也遇到了同样的问题。起作用的是首先导入模块,然后获取组件:
import mlxtend
from mlxtend.frequent_patterns import apriori
from mlxtend.frequent_patterns import association_rules发布于 2019-07-09 15:26:44
‘'pip install’适用于Python2,如果您是为Python3安装的,请改用pip3 install mlxtend
https://stackoverflow.com/questions/56947250
复制相似问题