title: Pysparse installation ubuntu
body: <p>I am having trouble installing pysparse on ubuntu. I installed the package python-sparse, but when running the example code found in the documentation</p>
  
  <pre><code>from pysparse.sparse import spmatrix
  from pysparse.direct import superlu
  import numpy
  n = 100
  A = poisson2d_sym_blk(n)
  b = numpy.ones(n*n)
  x = numpy.empty(n*n)
  LU = superlu.factorize(A.to_csr(), diag_pivot_thresh=0.0)
  LU.solve(b, x)
  </code></pre>
  
  <p>I get the error message </p>
  
  <pre><code>Traceback (most recent call last):
    File "sparse2.py", line 1, in &lt;module&gt;
      from pysparse.sparse import spmatrix
  ImportError: No module named sparse
  </code></pre>
  
  <p>I have also tried running </p>
  
  <pre><code>$ pip install pysparse
  Requirement already satisfied: pysparse in /usr/lib/python2.6/dist-packages
  Installing collected packages: pysparse
  Successfully installed pysparse
  </code></pre>
  
  <p>Why does the example code from the documentation not work? </p>
  
  <p>Thanks!</p>