title: ERROR: Unable to find py4j, your SPARK_HOME may not be configured correctly
body: <p>I'm unable to run below import in Jupyter notebook.</p>
  <pre><code>findspark.init('home/ubuntu/spark-3.0.0-bin-hadoop3.2')
  </code></pre>
  <p>Getting this following error:</p>
  <pre><code>    ---------------------------------------------------------------------------
  ~/.local/lib/python3.6/site-packages/findspark.py in init(spark_home, python_path, edit_rc, edit_profile)
      144     except IndexError:
      145         raise Exception(
  --&gt; 146             &quot;Unable to find py4j, your SPARK_HOME may not be configured correctly&quot;
      147         )
      148     sys.path[:0] = [spark_python, py4j]
  
  Exception: Unable to find py4j, your SPARK_HOME may not be configured correctly
  </code></pre>
  <p>I do have <strong>py4j</strong> installed and also tried to add these below lines into ~/.bashrc</p>
  <pre><code>export SPARK_HOME=/home/ubuntu/spark-3.0.0-bin-hadoop3.2
  export PYTHONPATH=$SPARK_HOME/python/:$PYTHONPATH
  export PYTHONPATH=$SPARK_HOME/python/lib/py4j-0.10.9-src.zip:$PYTHONPATH
  </code></pre>