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

后端 未结 4 1238
面向向阳花
面向向阳花 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:33

    I have faced this problem, it's caused by python version conflicts on diff nodes of cluster, so, it can be solved by

    export PYSPARK_PYTHON=/usr/bin/python
    

    which are the same version on diff nodes. and then start:

    pyspark
    

提交回复
热议问题