Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我被困在一个问题上。因此,如果您能帮我一点忙,我将不胜感激。
首先,我使用 'pip install pyspark' 命令通过 cmd 安装了 'pyspark'。
其次,我导入了 pyspark,并尝试使用 pyspark.ml 包。但它说
在此处输入图像描述
简而言之,他们说“模块'pyspark'没有属性ml”
但是 pyspark.sql 代码运行良好,而且我显然也有 ml 文件。
我不知道是什么问题。
提前致谢。