DBUtils: ModuleNotFoundError: No module named 'pyspark.dbutils'

95 Views Asked by At

I installed DBUtils using pip install DBUtils but I have the error : ModuleNotFoundError: No module named 'pyspark.dbutils' when trying to import : from pyspark.dbutils import DBUtils in one of my script.

pip freeze confirms I have DBUtils installed : DBUtils==3.0.3 but when I do DBUtils --version I have : DBUtils: command not found

Working with Python 3.8.18 and Spark 3.3.0 What is going on here ?

I was expecting to have the DBUtils module recognized

0

There are 0 best solutions below