<?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: ImportError: No module named 'bs4' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28077#M19915</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You need a file named &lt;B&gt;init&lt;/B&gt;.py (two underscores on each side) in every folder in the hierarchy. This is what python looks for to know that it should access a particular folder. The files are meant to contain initialization instructions but even if you create them empty this will solve it. To get rid of this error “ImportError: No &lt;A target="_blank" href="https://"&gt;module&lt;/A&gt; named”, you just need to create &lt;B&gt;init&lt;/B&gt;.py in the appropriate directory and everything will work fine. &lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 09:56:43 GMT</pubDate>
    <dc:creator>creigelde</dc:creator>
    <dc:date>2020-08-13T09:56:43Z</dc:date>
    <item>
      <title>ImportError: No module named 'bs4'</title>
      <link>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28075#M19913</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi, &lt;/P&gt;
&lt;P&gt;I would like to do some web scrapping, however I am unable to import the libraries I traditionally use for that task &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;import requests 
from bs4 import BeautifulSoup&lt;/CODE&gt;&lt;/PRE&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 20:05:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28075#M19913</guid>
      <dc:creator>IkramMecheri</dc:creator>
      <dc:date>2019-05-08T20:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named 'bs4'</title>
      <link>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28076#M19914</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@one_employee&lt;/P&gt;
&lt;P&gt;When you installed bs4 with easy_instal, you installed it system-wide. So your system python can import it, but not your virtualenv python. If you do not need bs4 to be installed in your system python path, uninstall it and keep it in your virtualenv.&lt;/P&gt;
&lt;P&gt;I will advise you to uninstall the bs4 library by using this command:&lt;/P&gt;
&lt;P&gt;&lt;B&gt;pip uninstall bs4&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;and then install it using this command:&lt;/P&gt;
&lt;P&gt;&lt;B&gt;sudo apt-get install python3-bs4&lt;/B&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 16:10:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28076#M19914</guid>
      <dc:creator>Chandan</dc:creator>
      <dc:date>2019-06-05T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named 'bs4'</title>
      <link>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28077#M19915</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You need a file named &lt;B&gt;init&lt;/B&gt;.py (two underscores on each side) in every folder in the hierarchy. This is what python looks for to know that it should access a particular folder. The files are meant to contain initialization instructions but even if you create them empty this will solve it. To get rid of this error “ImportError: No &lt;A target="_blank" href="https://"&gt;module&lt;/A&gt; named”, you just need to create &lt;B&gt;init&lt;/B&gt;.py in the appropriate directory and everything will work fine. &lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 09:56:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28077#M19915</guid>
      <dc:creator>creigelde</dc:creator>
      <dc:date>2020-08-13T09:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named 'bs4'</title>
      <link>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28078#M19916</link>
      <description>&lt;P&gt;Did you try &lt;/P&gt;&lt;P&gt;`%pip install bs4 `&lt;/P&gt;&lt;P&gt;requests is standard in the databricks runtime, so you don't have to install it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 04:09:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/importerror-no-module-named-bs4/m-p/28078#M19916</guid>
      <dc:creator>Hayley</dc:creator>
      <dc:date>2021-10-05T04:09:07Z</dc:date>
    </item>
  </channel>
</rss>

