Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
Showing results for 
Search instead for 
Did you mean: 

How to run a different python version then the default one on databricks cluster

Contributor II

Hi All,


I recently have a use case where i need to run something on the databricks cluster and the bare requirement is that python version shoulde be 3.8 and DBR version should be 11+. I am confused on how to handle this. Is there anyway in which we can define the python version or creating a virtual env?


Contributor II

Hello @deficiant_codge , 

I think it's not possible to modify the python version from a cluster manually without touching the DBR. 
Indeed each version of DBR is coming with a specific version of Python, Spark and Scala. (You can see for each runtime the information about the versions (spark, new features...)  : ). 

Only way to switch of version is too switch of Runtime. 

Finally just found a possible trick, you can maybe use a Docker image as poet_RY specified in this post:

Hey Brice, 

Thanks for the response, but can you help me out on understanding how will i put this docker image on Databricks I am a very basic user and not much clear on that any blog or post will help,



To be honest I don't really know... 

You can check this stack Overflow post, the last reply is explaining how to do it. 
Moreover, there is this documentation from Databricks on the subject: 

Not applicable

Hi @deficiant_codge 

Hope everything is going great.

Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you. 


Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!