- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 08:40 PM
Hi everyone,
I was wondering how I can install such a basic Python package on Databricks without running into conflict issues or downgrading to a runtime version lower than 15.
Specs:
The worker type is g4dn.xlarge [T4].
The runtime is 16.4 LTS (includes Apache Spark 3.5.2, Scala 2.13).
- Labels:
-
Automl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2025 12:05 AM - edited 08-12-2025 12:05 AM
Hi @drii_cavalcanti ,
You encountered this issue because opencv-python depends on packages that still require numpy in version lower than 2.
You need to reinstall numpy to supported version and then try once again installing library. You can do it using following command:
%pip install opencv-python numpy==1.26.4 --force-reinstallI've tested it on the same DBR and cluster as your and as you can see below, it worked:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2025 06:24 AM
Hi @drii_cavalcanti ,
If the answer was helpful to you, please consider marking it as accepted solution. This way we help others with similar question/issue find the correct answer.