<?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: How to install AI library aif360 on databricks notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8014#M3747</link>
    <description>&lt;P&gt;@Suteja Kanuri​&amp;nbsp;​&amp;nbsp;I get a weird error that the library doesn't exist. I'm attaching a screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 01:59:22 GMT</pubDate>
    <dc:creator>ahmedE_</dc:creator>
    <dc:date>2023-03-24T01:59:22Z</dc:date>
    <item>
      <title>How to install AI library aif360 on databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8010#M3743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to install a library called aif360 on the databricks notebook. However, I get error that tkinter is not installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried installing &lt;I&gt;tk&lt;/I&gt;&lt;B&gt;&lt;I&gt; &lt;/I&gt;&lt;/B&gt;and&lt;B&gt;&lt;I&gt; &lt;/I&gt;&lt;/B&gt;&lt;I&gt;tk-tools, &lt;/I&gt;but still the issue remains. &lt;/P&gt;&lt;P&gt;Any idea on what solution we can use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="no way to instal tkinter"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/553iB7133FA16DBCCE62/image-size/large?v=v2&amp;amp;px=999" role="button" title="no way to instal tkinter" alt="no way to instal tkinter" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried installing the libraries through the cluster settings, still doesn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 17:08:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8010#M3743</guid>
      <dc:creator>ahmedE_</dc:creator>
      <dc:date>2023-03-09T17:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to install AI library aif360 on databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8011#M3744</link>
      <description>&lt;P&gt;@Ahmed Elghareeb​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aif360 package requires a GUI library like tkinter for some of its visualization functionalities. However, it is not recommended to install GUI libraries on Databricks since it is a cloud-based platform and there is no display available. You can still use the aif360 package on Databricks, but you will need to avoid using the visualization functionalities that require tkinter. If you still need to use the visualization functionalities, one workaround is to install the required libraries on your local machine and run the visualization code from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still encounter issues with the installation, try installing aif360 and its dependencies using a Python wheel file instead of using pip. You can download the wheel file from the aif360 GitHub page (&lt;A href="https://github.com/Trusted-AI/AIF360" alt="https://github.com/Trusted-AI/AIF360" target="_blank"&gt;https://github.com/Trusted-AI/AIF360&lt;/A&gt;) and then upload it to your Databricks workspace. Then, install the wheel file using the "Upload Python Egg or PyPI Package" option in the "Libraries" tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 08:10:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8011#M3744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-16T08:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to install AI library aif360 on databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8012#M3745</link>
      <description>&lt;P&gt;Thanks @Suteja Kanuri​&amp;nbsp;for your answer. Indeed I'm aware of the GUI situation. In fact, I have no intention of using the GUI feature, however, tkinter is imported on a module level. Even if I'm not calling Tkinter code at all, since the import is in the same file as other code that I'm calling, then it's gonna raise an exception. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, the question is.. is there a way to install Tkinter when I'm not planning to use it? &lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 18:30:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8012#M3745</guid>
      <dc:creator>ahmedE_</dc:creator>
      <dc:date>2023-03-19T18:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to install AI library aif360 on databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8013#M3746</link>
      <description>&lt;P&gt;@Ahmed Elghareeb​&amp;nbsp;: Can you try installing using the below command&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;pip install python-tk&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 03:20:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8013#M3746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-20T03:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to install AI library aif360 on databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8014#M3747</link>
      <description>&lt;P&gt;@Suteja Kanuri​&amp;nbsp;​&amp;nbsp;I get a weird error that the library doesn't exist. I'm attaching a screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 01:59:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8014#M3747</guid>
      <dc:creator>ahmedE_</dc:creator>
      <dc:date>2023-03-24T01:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to install AI library aif360 on databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8015#M3748</link>
      <description>&lt;P&gt;@Ahmed Elghareeb​&amp;nbsp;: Providing you 2 options here, please see what works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;!pip install tk&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should install the necessary dependencies for python-tk without actually installing the python-tk package itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new cluster in Databricks.&lt;/LI&gt;&lt;LI&gt;Under the "Advanced Options" section, select the "Init Scripts" tab.&lt;/LI&gt;&lt;LI&gt;Add a new init script with the following content:&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;&lt;CODE&gt;apt-get update
apt-get install -y python3-tk```
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;-Save and launch the cluster.&lt;/P&gt;&lt;P&gt;-Once the cluster is up and running, you should be able to import tkinter in your notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This init script installs the required package for tkinter to work on Databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 04:08:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8015#M3748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-02T04:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to install AI library aif360 on databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8016#M3749</link>
      <description>&lt;P&gt;Hi @Ahmed Elghareeb​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your question! To assist you better, please take a moment to review the answer and let me know if it best fits your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help us select the best solution by clicking on "Select As Best" if it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 10:49:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-install-ai-library-aif360-on-databricks-notebook/m-p/8016#M3749</guid>
      <dc:creator>Vartika</dc:creator>
      <dc:date>2023-04-03T10:49:18Z</dc:date>
    </item>
  </channel>
</rss>

