Installation issue : Ubuntu 16.04.2 LTS

Having an issue with installation, below is my command line output. Perhaps someone has some insight into my problem?

pan@prometheus:~$ pip install nupic
Collecting nupic
  Using cached nupic-0.5.6.tar.gz
Collecting asteval==0.9.1 (from nupic)
  Using cached asteval-0.9.1.tar.gz
Collecting coverage==3.7.1 (from nupic)
  Using cached coverage-3.7.1.tar.gz
Collecting mock==1.0.1 (from nupic)
  Using cached
Collecting ordereddict==1.1 (from nupic)
  Using cached ordereddict-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic)
  Using cached psutil-1.0.1.tar.gz
Collecting pytest==2.5.1 (from nupic)
  Using cached pytest-2.5.1.tar.gz
Collecting pytest-cov==1.6 (from nupic)
  Using cached pytest-cov-1.6.tar.gz
Collecting pytest-xdist==1.8 (from nupic)
  Using cached
Collecting python-dateutil==2.1 (from nupic)
  Using cached python-dateutil-2.1.tar.gz
Collecting PyYAML==3.10 (from nupic)
  Using cached PyYAML-3.10.tar.gz
Collecting unittest2==0.5.1 (from nupic)
  Using cached
    Complete output from command python egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-xkbjrdhk/unittest2/", line 12, in <module>
        from unittest2 import __version__ as VERSION
      File "/tmp/pip-build-xkbjrdhk/unittest2/unittest2/", line 40, in <module>
        from unittest2.collector import collector
      File "/tmp/pip-build-xkbjrdhk/unittest2/unittest2/", line 3, in <module>
        from unittest2.loader import defaultTestLoader
      File "/tmp/pip-build-xkbjrdhk/unittest2/unittest2/", line 92
        except Exception, e:
    SyntaxError: invalid syntax
Command "python egg_info" failed with error code 1 in /tmp/pip-build-xkbjrdhk/unittest2/



Two versions of Python and pip getting confused. Solution here

1 Like