DT_NoHope
DT_NoHope

Reputation: 47

Unable to open Pyspark Shell on Linux

I am running ./bin/pyspark at to open the pyspark shell but I get the following error :

./bin/pyspark: line 45: python: command not found env: ‘python’: No such file or directory

I have searched about it a lot. Couldn't find a solution. How should I resolve this ?

Thanks,

Upvotes: 0

Views: 1779

Answers (1)

temp
temp

Reputation: 61

The program is calling a python command, but python is not in the path. You do this by adding a link to /usr/bin.

In Ubuntu, you can try this: sudo ln -s /usr/bin/python3 /usr/bin/python

More information found here: https://markobigdata.com/2018/01/12/installing-apache-spark-2-2-1/

Upvotes: 2

Related Questions