cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Graphframes not importing on Databricks 9.1 LTS ML

JonHMDavis
New Contributor II

Is Graphframes for python meant to be installed by default on Databricks 9.1 LTS ML? Previously I was running the attached python command on 7.3 LTS ML with no issue, however now I am getting "no module named graphframes" when trying to import the package, but I thought this came pre-installed with 9.1 LTS ML.

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz
Community Manager
Community Manager

Hi @Jonathan Davis​,

Note:-By default, "graphframes" is not installed on the databricks.

You need to install the packages explicitly.

  • You can install the package using pip cmdlets.
  • You can use the below command to install any external package.

%sh /databricks/python3/bin/pip install <packagename>

Here is your case:-

%sh  /databricks/python3/bin/pip install graphframes

Screenshot 2021-12-10 at 2.40.42 PM 

View solution in original post

5 REPLIES 5

Kaniz
Community Manager
Community Manager

Hi @ JonHMDavis! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers in the community have an answer to your question first. Or else I will get back to you soon. Thanks.

Kaniz
Community Manager
Community Manager

Hi @Jonathan Davis​,

Note:-By default, "graphframes" is not installed on the databricks.

You need to install the packages explicitly.

  • You can install the package using pip cmdlets.
  • You can use the below command to install any external package.

%sh /databricks/python3/bin/pip install <packagename>

Here is your case:-

%sh  /databricks/python3/bin/pip install graphframes

Screenshot 2021-12-10 at 2.40.42 PM 

JonHMDavis
New Contributor II

Thank you @Kaniz Fatma​  , I will do that. I was just asking as it states here that graphframes comes pre-installed: https://docs.databricks.com/spark/latest/graph-analysis/graphframes/index.html

Kaniz
Community Manager
Community Manager

Hi @Jonathan Davis​ , By default, "graphframes" is not installed on the databricks.

-werners-
Esteemed Contributor III

Hm I thought the same thing as the docs state "The GraphFrames package is included in Databricks Runtime for Machine Learning".

But that could have changed...

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.