<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Installing opencv-python on DBX in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/installing-opencv-python-on-dbx/m-p/128128#M4210</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/87815"&gt;@drii_cavalcanti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You encountered this issue because opencv-python depends on packages that still require numpy in version lower than 2.&amp;nbsp;&lt;BR /&gt;You need to reinstall numpy to supported version and then try once again installing library. You can do it using following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%pip install opencv-python numpy==1.26.4 --force-reinstall&lt;/LI-CODE&gt;&lt;P&gt;I've tested it on the same DBR and cluster as your and as you can see below, it worked:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1754982305226.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18966i931D063740FB6191/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1754982305226.png" alt="szymon_dybczak_0-1754982305226.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2025 07:05:50 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-08-12T07:05:50Z</dc:date>
    <item>
      <title>Installing opencv-python on DBX</title>
      <link>https://community.databricks.com/t5/machine-learning/installing-opencv-python-on-dbx/m-p/128118#M4209</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Specs:&lt;BR /&gt;The worker type is g4dn.xlarge [T4].&lt;BR /&gt;The runtime is 16.4 LTS (includes Apache Spark 3.5.2, Scala 2.13).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 03:40:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/installing-opencv-python-on-dbx/m-p/128118#M4209</guid>
      <dc:creator>drii_cavalcanti</dc:creator>
      <dc:date>2025-08-12T03:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Installing opencv-python on DBX</title>
      <link>https://community.databricks.com/t5/machine-learning/installing-opencv-python-on-dbx/m-p/128128#M4210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/87815"&gt;@drii_cavalcanti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You encountered this issue because opencv-python depends on packages that still require numpy in version lower than 2.&amp;nbsp;&lt;BR /&gt;You need to reinstall numpy to supported version and then try once again installing library. You can do it using following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%pip install opencv-python numpy==1.26.4 --force-reinstall&lt;/LI-CODE&gt;&lt;P&gt;I've tested it on the same DBR and cluster as your and as you can see below, it worked:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1754982305226.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/18966i931D063740FB6191/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1754982305226.png" alt="szymon_dybczak_0-1754982305226.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 07:05:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/installing-opencv-python-on-dbx/m-p/128128#M4210</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-08-12T07:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Installing opencv-python on DBX</title>
      <link>https://community.databricks.com/t5/machine-learning/installing-opencv-python-on-dbx/m-p/128220#M4212</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/87815"&gt;@drii_cavalcanti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 13:24:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/installing-opencv-python-on-dbx/m-p/128220#M4212</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-08-12T13:24:57Z</dc:date>
    </item>
  </channel>
</rss>

