# Windows 10 nupic install problem

**URL:** <https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307>\
**Category:** NuPIC\
**Created:** [January 25, 2019, 7:47pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307 "2019-01-25T19:47:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hcrystal](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@hcrystal](https://discourse.numenta.org/u/hcrystal)\
**Post date:** [January 25, 2019, 7:47pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/1 "2019-01-25T19:47:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [January 26, 2019, 10:02pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/2 "2019-01-26T22:02:19Z")

</div>

What command are you trying to run?

---

<div class="post-metadata">

**Author:** ![Jose\_Cueto](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/jose_cueto/32/4052_2.png) [@Jose\_Cueto](https://discourse.numenta.org/u/Jose_Cueto)\
**Post date:** [January 27, 2019, 6:48am UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/3 "2019-01-27T06:48:41Z")

</div>

> [@hcrystal](#):
>
> File “C:\Users\hcrystal\AppData\Local\Temp\pip-install-391u\_okd\unittest2\unittest2\loader.py”, line 92
> 
> except Exception, e:
> 
> ^
> 
> SyntaxError: invalid syntax

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

---

<div class="post-metadata">

**Author:** ![hcrystal](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@hcrystal](https://discourse.numenta.org/u/hcrystal)\
**Post date:** [January 27, 2019, 3:03pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/4 "2019-01-27T15:03:34Z")

</div>

I am just trying to install nupic

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [January 27, 2019, 5:51pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/5 "2019-01-27T17:51:08Z")

</div>

What command did you use to attempt to install Nupic?

---

<div class="post-metadata">

**Author:** ![hcrystal](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@hcrystal](https://discourse.numenta.org/u/hcrystal)\
**Post date:** [January 28, 2019, 2:34pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/6 "2019-01-28T14:34:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jose\_Cueto](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/jose_cueto/32/4052_2.png) [@Jose\_Cueto](https://discourse.numenta.org/u/Jose_Cueto)\
**Post date:** [January 28, 2019, 8:00pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/7 "2019-01-28T20:00:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hcrystal](https://avatars.discourse-cdn.com/v4/letter/h/41988e/32.png) [@hcrystal](https://discourse.numenta.org/u/hcrystal)\
**Post date:** [January 28, 2019, 8:18pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/8 "2019-01-28T20:18:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [January 28, 2019, 9:11pm UTC](https://discourse.numenta.org/t/windows-10-nupic-install-problem/5307/9 "2019-01-28T21:11:17Z")

</div>

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