mac上安装spark完成后找不到pyspark模块

 

Use findspark

  1. Go to your python shell

    pip install findspark 
    
    import findspark 
    findspark.init()

     

  2. import the necessary modules

    from pyspark import SparkContext 
    rom pyspark import SparkConf

     

  3. Done!!!

posted on 2017-04-05 13:47  齐柏林飞艇  阅读(505)  评论(0编辑  收藏  举报