title: How to re-install lxml?
body: <p><strong>Python version and Device used</strong></p>
  <ul>
  <li>Python 2,7.5</li>
  <li>Mac 10.7.5</li>
  <li>BeautifulSoup 4.2.1.</li>
  </ul>
  <p>I'm following the BeautifulSoup tutorial but when I try to parse a xml page using the lxml library I get the following error:</p>
  <pre><code>bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested:
  lxml,xml. Do you need to install a parser library?
  </code></pre>
  <p>I am sure that I already installed lxml by all methods: easy_install, pip, port, etc. I tried to add a line to my code to see if lxml is installed or not:</p>
  <pre><code>import lxml
  </code></pre>
  <p>Then python can just successfully go through this code and display the previous error message again, occurring at the same line.</p>
  <p>So I am quite sure that lxml was installed, but not installed correctly. So I decided to uninstall lxml, and then re-install using a 'correct' method. But when I type in</p>
  <pre><code>easy_install -m  lxml
  </code></pre>
  <p>I get the following error:</p>
  <pre><code>Searching for lxml
  Best match: lxml 3.2.1
  Processing lxml-3.2.1-py2.7-macosx-10.6-intel.egg
  
  Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml-
  3.2.1-py2.7-macosx-10.6-intel.egg
  
  Because this distribution was installed --multi-version, before you can
  import modules from this package in an application, you will need to
  'import pkg_resources' and then use a 'require()' call similar to one of
  these examples, in order to select the desired version:
  
  pkg_resources.require(&quot;lxml&quot;)  # latest installed version
  pkg_resources.require(&quot;lxml==3.2.1&quot;)  # this exact version
  pkg_resources.require(&quot;lxml&gt;=3.2.1&quot;)  # this version or higher
  
  Processing dependencies for lxml
  Finished processing dependencies for lxml
  </code></pre>
  <p>So I don't know how to continue my uninstall, I looked up many posts about this issue on google but still I can't find any useful info.</p>
  <hr />
  <h2>Here is my Source code</h2>
  <pre><code>import mechanize
  from bs4 import BeautifulSoup
  import lxml
  
  class count:
      def __init__(self,protein):
          self.proteinCode = protein
          self.br = mechanize.Browser()
  
      def first_search(self):
          #Test 0
          soup = BeautifulSoup(self.br.open(&quot;http://www.ncbi.nlm.nih.gov/protein/21225921?report=genbank&amp;log$=prottop&amp;blast_rank=1&amp;RID=YGJHMSET015&quot;), ['lxml','xml'])
          return
  
  if __name__=='__main__':
      proteinCode = sys.argv[1]
      gogogo = count(proteinCode)
  </code></pre>
  <hr />
  <h2>Questions</h2>
  <ol>
  <li>How can I uninstall lxml?</li>
  <li>How can I install lxml 'correctly'? How do I know that it is correctly installed?</li>
  </ol>