I am trying to use databricks connect.
I have installed databricks-connect version 9.1.39 in a virtual environment within my python project.
I have selected the python3.8 file in the virtual environment as the interpreter of the vscode project. However, when trying to run a file that starts with
from databricks.connect import DatabricksSession
I always get a
ModuleNotFoundError: No module named 'databricks'
Just to make sure this was not due to the module databricks-connect not being in the actual environment when I run it, I actually opened a python shell within the venv and run the same line (from databricks.connect ...
) and got the same error.
Why is this happening? Is it due to datarbicks.connect not being related to databricks-connect?
Thanks in advance.