linux 下 python 运行 pyspark

 from pyspark import SparkContext
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>

要先安装 findspark 包 然后执行   pip install findsparp

再进入python shell 导入包

import findspark
findspark.init()

 

 
posted @ 2019-12-15 13:27  七里、  阅读(1196)  评论(0)    收藏  举报