I have below python (3.10.9) and spark version (3.4.0) installed on mac.
(base) xyz@terminal ~ % python --version
Python 3.10.9
(base) xyz@terminal ~ % python3 --version
Python 3.10.9
(base) xyz@terminal ~ % where python
/Users/xyz/anaconda3/bin/python
(base) xyz@terminal ~ % where python3
/Users/xyz/anaconda3/bin/python3
/usr/bin/python3
(base) xyz@terminal ~ % which spark-shell
/opt/homebrew/bin/spark-shell
when I launch PyCharm IDE, create a simple test .py script having below code, I can see red warning on top right side of IDE - 'unresolved reference PySpark' (install package pyspark), 'unresolved reference col' (install package col). Should I click on install, does this cause any conflicts with already installed spark? Since I already have pyspark installed , why PyCharm is not able to use them?
I have already added Python 3.9 (/usr/bin/python3) as Python Interpreter
from pyspark.sql import SparkSession
from pyspark.sql.functions import col
spark = SparkSession.builder \
.appName("test Consumer") \
.getOrCreate()