Pycharm pyspark error

#1

Hi,

my simple hello world works. when include pyspark into the code, it says “The system cannot find the path specified.” both Project Interpreter and project structure set as recommended. can you pls help me to resovle it
=============code===============
from pyspark import SparkConf, SparkContext

sc = SparkContext(master=“local”,appName=“Spark Demo”)
print(“Hello World”)

=====================
=============Output=================
C:\temp\spark\helloworld\venv\Scripts\python.exe C:/temp/spark/helloworld/SparkDemo.py
The system cannot find the path specified.

0 Likes

#2

@venkata_navakotti Can you share the screenshot of your project structure?

0 Likes