Windows 10 nupic install problem


#1

Hi –

I have been having trouble with a Windows 10, 64 bit install:

When I try the VC++ Compiler for Python 2.7 install I get the following

installs for a while and then I get…

File "C:\Users\hcrystal\AppData\Local\Temp\pip-install-391u_okd\unittest2\unittest2\loader.py", line 92

except Exception, e:

^

SyntaxError: invalid syntax

And when I try the VS2008 package install I get:

(base) C:\Users\hcrystal\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\bin>vcvarsx86_amd64

Setting environment for using Microsoft Visual Studio 2008 x64 cross tools.

WindowsSdkDir not found

I note my directory differs from:

C:\Program Files(x86)\Microsoft Visual Studios 9.0\VC\bin\vcvarsx86_amd64.bat

I suppose I could make that directory and copy into that, but I was reluctant to do that, and prefer explicit instructions of what to do.

Thanks

Howard C


#2

What command are you trying to run?


#3

This error tells me that Python3 was used to load loader.py. Commas in Python3 exception except clause is not anymore supported.


#4

I am just trying to install nupic


#5

What command did you use to attempt to install Nupic?


#6

Hi –

I have been running python 3.4 for other programs. I installed python 2.7 from the Python website.

The Python 3.4 install with Anaconda install generated a command prompt window that I use to get other software going. I have been using that window (unsuccessfully)
for NUPIC stuff. Changing directory to the python 2.7 directory makes no difference. I haven’t found the Python 2.7 equivalent of this command prompt window.

?? if problem with how PATHs are defined?

Thanks

Howard C


#7

Thanks for elaborating, could you please answer @rhyolight’s question? It would helpful to know which command you ran.


#8

the command:

pip install nupic elicits many lines of response indicating it is installing until it gets to

    from unittest2.loader import defaultTestLoader
  File "C:\Users\hcrystal\AppData\Local\Temp\pip-install-391u_okd\unittest2\unittest2\loader.py", line 92
    except Exception, e:
                    ^
SyntaxError: invalid syntax

Thanks

Howard C


#9

I’m pretty sure you are running Python 3. You need to figure out how to get a Python 2.7 runtime.