This is not databricka setup but setting up spark environment on local machine and use pyspark for local development Only diff is databricks always you can spark instance whereas local you need to create spark instance first to do any code
Setup cam differ slightly based on whether wants to be on Windows or Unix.
Windows some tweaks needed for dbutils and if you want save delta tables locally then there are packages and jars to do it.