findspark.init() IndexError: list index out of range error

前端 未结 4 993
醉酒成梦
醉酒成梦 2020-12-17 10:11

When running the following in a Python 3.5 Jupyter environment I get the error below. Any ideas on what is causing it?

import findspark
findspark.init()
         


        
4条回答
  •  鱼传尺愫
    2020-12-17 10:19

    maybe this could help:

    i found that findspark.init() tries to find data in .\spark-3.0.1-bin-hadoop2.7\bin\python\lib, but the python folder was outside the bin folder. i simply ran findspark.init('.\spark-3.0.1-bin-hadoop2.7'), without the '\bin' folder

提交回复
热议问题