Syntax error when installing csc-pysparse
<p>I am new to Python and I am trying to install recsys package.</p>

<p><a href="http://ocelma.net/software/python-recsys/build/html/installation.html" rel="nofollow">http://ocelma.net/software/python-recsys/build/html/installation.html</a></p>

<p>For this i need to install some pre-requiste packages, so i have to run this using pip</p>

<p>pip install csc-pysparse networkx divisi2</p>

<p>But whenever i run this i get the following in logs</p>

<pre><code>    Collecting csc-pysparse
  Using cached csc-pysparse-1.1.1.4.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "&lt;string&gt;", line 1, in &lt;module&gt;
      File "C:\Users\64\AppData\Local\Temp\pip-build-wn7_65_9\csc-pysparse\
setup.py", line 33
        print 'setuptools module not found.'
                                           ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
</code></pre>

<p>Command "python setup.py egg_info" failed with error code 1 in C:\Users\i054564\
AppData\Local\Temp\pip-build-wn7_65_9\csc-pysparse\</p>

<p>I checked that setuptools exist in my python installation here</p>

<p>C:\Python34\lib\site-packages</p>

<p>I have ran everything from unstinalling setuptools to install it again, upgrade command, but it does not work.</p>

<p>Not able to figure out why setuptools is not found. Is it not found in the path of where pip resolves it from ?</p>

<p>cheers,</p>

<p>Saurav</p>

<p>The code triggering the error is Python 2-specific and is illegal in Python 3.</p>

<p>Apparently, <code>csc-pysparse</code> doesn't support Python 3 (<a href="https://github.com/rspeer/csc-pysparse/blob/master/README" rel="nofollow">its <code>README</code></a> only mentions 2.6) and <a href="https://github.com/rspeer/csc-pysparse" rel="nofollow">looks abandoned</a> (6 years since last commit).</p>

<p>Some guys out there <a href="https://github.com/ocelma/python-recsys/issues/19" rel="nofollow">suggest replacing it with SciPy</a>.</p>

python python-3.x pip