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!!!

原文地址:https://www.cnblogs.com/kennyhr/p/6668353.html