title: ImportError No module named BeautifulSoup - path error
body: <p>I've downloaded beautiful soup to use in python and all was fine but it shows this error:</p>
  
  <pre>from BeautifulSoup import BeautifulSoup
  ImportError: No module named BeautifulSoup</pre>
  
  <p>after a good google and search on here I tried </p>
  
  <pre><code>from bs4 import BeautifulSoup
  </code></pre>
  
  <p>but get essentially the same error.</p>
  
  <pre><code>ImportError: No module named bs4
  </code></pre>
  
  <p>The code I am trying to execute is below.</p>
  
  <pre><code>from BeautifulSoup import BeautifulSoup
  import re
  
  doc = ['&amp;lt;html&gt;&amp;lt;head&gt;&amp;lt;title&gt;Page title&amp;lt;/title&gt;&amp;lt;/head&gt;',
         '&amp;lt;body&gt;&lt;p id="firstpara" align="center"&gt;This is paragraph &lt;b&gt;one&lt;/b&gt;.',
         '&lt;p id="secondpara" align="blah"&gt;This is paragraph &lt;b&gt;two&lt;/b&gt;.',
         '&amp;lt;/html&gt;']
  soup = BeautifulSoup(''.join(doc))
  
  print soup.prettify()
  </code></pre>
  
  <p>I've installed beautifulsoup4 and I'm using mac OS X if that counts for anything </p>
  
  <p>EDIT as a few comments said, I had a spelling error however after correcting this the same error is still being thrown up despite having the correct spelling.</p>
  
  <p>EDIT I've tried to use lxml as an alternative and it gives me the same error just with lxml, I had the same problem with requests too so I'm assuming its a problem with an incorrect path rather than the import itself hence the slight title change</p>
  
  <p>EDIT as requested output of which -a python:</p>
  
  <pre><code>/usr/local/bin/python
  /usr/bin/python
  </code></pre>