java.io.IOException: Cannot run program “python” using Spark in Pycharm (Windows)

后端 未结 4 1230
面向向阳花
面向向阳花 2020-12-04 02:25

I am trying to write a very simple code using Spark in Pycharm and my os is Windows 8. I have been dealing with several problems which somehow managed to fix except for one.

4条回答
  •  粉色の甜心
    2020-12-04 02:47

    I had the same problem as you, and then I made the following changes: set PYSPARK_PYTHON as environment variable to point to python.exe in Edit Configurations of Pycharm, here is my example:

    PYSPARK_PYTHON = D:\Anaconda3\python.exe

    SPARK_HOME = D:\spark-1.6.3-bin-hadoop2.6

    PYTHONUNBUFFERED = 1

提交回复
热议问题