pip install nupic gives error "Command "python setup.py egg_info" failed with error code 1 in..."
I'm running Windows 10. To reproduce the error:
I've created a virtual environment "numenta-env" with python=3.6
activate numenta-env
pip install nupic
It begins installing and then halts while collected unittest2==0.5.1 (from nupic)
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Chris\AppData\Local\Temp\pip-build-r5de8_q3\\unittest2\
Here is the complete output after running 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 mock-1.0.1.zip 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 pytest-xdist-1.8.zip 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 unittest2-0.5.1.zip Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\Chris\AppData\Local\Temp\pip-build-r5de8_q3\\unittest2\setup.py", line 12, in from unittest2 import version as VERSION File "C:\Users\Chris\AppData\Local\Temp\pip-build-r5de8_q3\\unittest2\\unittest2_init_.py", line 40, in from unittest2.collector import collector File "C:\Users\Chris\AppData\Local\Temp\pip-build-r5de8_q3\\unittest2\\unittest2\collector.py", line 3, in from unittest2.loader import defaultTestLoader File "C:\Users\Chris\AppData\Local\Temp\pip-build-r5de8_q3\\unittest2\\unittest2\loader.py", line 92 except Exception, e: ^ SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Chris\AppData\Local\Temp\pip-build-r5de8_q3\\unittest2\
I've tried unintstalling and reinstalling setuptools, but no joy. Incredibly frustrating to sink several hours debugging and reinstalling packages with zero to show for the effort.
Source: numenta/nupic-legacy