Skip to content

Commit 808b17d

Browse files
committed
PYSPARK_PYTHON should point to your system Python, not your virtual environment Python interpreter
1 parent 82b48c2 commit 808b17d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyspark/installing_pyspark_320.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export SPARK_HOME=/opt/spark
2828
# Add spark/bin and spark/sbin to the PATH environment variable
2929
export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin
3030

31-
# Then create PYSPARK_PYTHON environment that points to your Python interpreter that has PySpark installed
32-
export PYSPARK_PYTHON=<path_to_python_env_with_pyspark_python>
31+
# Then create PYSPARK_PYTHON environment variable that points to your system Python interpreter
32+
export PYSPARK_PYTHON=/usr/bin/python3
3333

3434
# Refresh .profile or .bashrc
3535
source ~/.profile

0 commit comments

Comments
 (0)