I recently created two environment variables in my terminal as shown below
export SPARK_HOME=\'/opt/spark/\' export HAIL_HOME=\'/home/ABCD/.pyenv/versions/3.7.2/e
use os.environ.get("SPARK_HOME").