BeautifulSoup4 is not working even though I have successfully installed it using pip Linux Mint Sarah
<p>I am a brand new linux user using linux mint sarah and I just installed python 3.5 as well as BeautifulSoup to do some web scraping.</p>

<p>However, when I type in the following command I receive a traceback error:</p>

<p>from bs4 import BeautifulSoup</p>

<p>The error tells me that there is no module bs4.</p>

<p>I have also tried:
import bs4
from BeautifulSoup import BeautifulSoup
import beautifulsoup</p>

<p>This is weird because if I go into terminal and give the command pip list, it shows me a list of all my programs and it states that I have beautifulsoup4 (4.5.1)</p>

<p>I successfully used pip in the same exact way to install a module called requests and it was successful.</p>

<p>One thing that I think may be getting in the way is that Linux mint comes with python 2.7 installed and my modules are going into a 2.7 folder which seems odd. (However, the requests module that I can successfully use is in the same folder as the BeautifulSoup4 module) </p>

<p>I must admit I have not tried easy_install because it gives me some error about the directory not existing when I try to install BeautifulSoup4 that way.</p>

<p>I'm muddying the waters too much so I will leave it at that. Hopefully, somebody can help me figure out whats going on so that people who have this problem in the future can benefit.</p>

<p>Thanks!</p>

<p>You need to install <strong>BeautifulSoup4</strong> for <strong>Python 3.5</strong>.</p>

<p><strong>Option 1:</strong></p>

<ul>
<li>Download <a href="https://bootstrap.pypa.io/get-pip.py" rel="nofollow">https://bootstrap.pypa.io/get-pip.py</a> file to server.</li>
<li>Run <code>python3 get-pip.py</code></li>
<li>Run <code>pip3 install beautifulsoup4</code></li>
</ul>

<p><strong>Option 2:</strong></p>

<ul>
<li>Download <a href="https://pypi.python.org/pypi/beautifulsoup4" rel="nofollow">https://pypi.python.org/pypi/beautifulsoup4</a> to server.</li>
<li><p>Extract tar.gz: <code>tar -xvzf beautifulsoup4-4.5.1.tar.gz</code></p></li>
<li><p>Go to folder: <code>cd beautifulsoup4-4.5.1/</code></p></li>
<li><p>Install from source: <code>python3 setup.py install</code></p></li>
</ul>

python linux bs4