cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How do I specify a version of a library different from the Databricks runtime?

User16137833804
Databricks Employee
Databricks Employee
3 REPLIES 3

brickster_2018
Databricks Employee
Databricks Employee

The question is not clear. What kind of library are you referring to here?

  • For Python libraries, it's possible to remove the existing libraries and install the new ones using an init script
  • For Jar libraries, adding a different version of jar could be very risky.

sean_owen
Databricks Employee
Databricks Employee

For Python libs, the simpler thing is to use %pip install to install them in a notebook. Yes, it could potentially break compatibility with other installed versions. pip will try to figure that out. That could be simpler to deal with than in an init script, and digging for errors on cluster creation.

Sebastian
Contributor

the best solution is to store the .whl locally and do a pip install of the local whl while server boots up. this will freeze the library version. if you install from the pip it might impact your production work.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group