当前位置: 首页 > 图灵资讯 > 技术篇> pyspark env: ‘python’: No such file or directory

pyspark env: ‘python’: No such file or directory

来源:图灵教育
时间:2023-05-19 09:15:02

vim ~/.bashrc

末尾添加

export PYTHONPATH=SPARK_HOME/python/lib/py4j-0.10.7-src.zip:$PYTHONPATH

export PYSPARK_PYTHON=python3

然后生效

source ~/.bashrc

执行到spark目录

./bin/pyspark

启动PySpark 成功的shell

pyspark env: ‘python’: No such file or directory_SPARK_02

pyspark env: ‘python’: No such file or directory_SPARK_03