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,
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/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.