赞
踩
Exception: Python in worker has different version 2.7 than that in driver 3.4, PySpark cannot run with different minor versions.
Please check environment variables PYSPARK_PYTHON and PYSPARK_DRIVER_PYTHON are correctly set.
import os
#此处指定自己的python路径
os.environ["PYSPARK_PYTHON"]="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。