Python 无法将组织模块导入PySpark群集

Python 无法将组织模块导入PySpark群集,python,apache-spark,pyspark,google-cloud-dataproc,fpgrowth,Python,Apache Spark,Pyspark,Google Cloud Dataproc,Fpgrowth,我试图从org模块导入FPGrowth,但在安装org模块时出错。我还尝试将org.apache.spark替换为pyspark,但仍然不起作用 !pip install org import org.apache.spark.ml.fpm.FPGrowth 以下是错误: ERROR: Could not find a version that satisfies the requirement org (from versions: none) ERROR: No matching dist

我试图从org模块导入FPGrowth,但在安装org模块时出错。我还尝试将org.apache.spark替换为pyspark,但仍然不起作用

!pip install org
import org.apache.spark.ml.fpm.FPGrowth
以下是错误:

ERROR: Could not find a version that satisfies the requirement org (from versions: none)
ERROR: No matching distribution found for org
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-12-c730562e7076> in <module>
      1 get_ipython().system('pip install org')
----> 2 import org.apache.spark.ml.fpm.FPGrowth

ModuleNotFoundError: No module named 'org'
错误:找不到满足需求组织的版本(来自版本:无)
错误:找不到组织的匹配分发
---------------------------------------------------------------------------
ModuleNotFoundError回溯(上次最近调用)
在里面
1 get_ipython().system('pip install org')
---->2导入org.apache.spark.ml.fpm.FPGrowth
ModuleNotFoundError:没有名为“org”的模块

要在PySpark中导入
FPGrowth
,您需要编写:

from pyspark.ml.fpm import FPGrowth
您可以在中找到有关如何使用
FPGrowth
的其他说明