首页 > 图灵资讯 > 技术篇>正文
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