python - 没有名为“mlxtend”的模块
问题描述
我无法在 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`
解决方案
您需要使用以下命令:
pip install mlxtend
您当前正在尝试安装mlextend
(不存在)而不是mlxtend
.
推荐阅读
- javascript - 在没有 ctx.scale 的情况下将画布缩放到鼠标光标
- python - pip freeze 创建了一些奇怪的路径而不是包版本
- mongodb - MongoDB 一个集合与多个集合
- asp.net-core - .NET Core 3 ClaimTypes.Name 返回对象空引用错误
- node.js - 使用 Angular 9 的电子商务应用程序的产品变体
- python - 计算每行数据框中出现的单词和标签?
- python - logical_not 用于 1,0 而不是 True,布尔数组中的 False
- angular - 如何在 Angular 2 及更高版本中将时钟同步到自定义时间
- javascript - 写回文函数
- python - Python数据框错误'dtype ='datetime64 [ns,pytz.FixedOffset(-300)]'