赞
踩
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
os.environ["PYSPARK_PYTHON"]="/usr/bin/python3"
指向想要的python版本的路径即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。