# How to get NuPIC running on Windows

**URL:** <https://discourse.numenta.org/t/how-to-get-nupic-running-on-windows/1076>\
**Category:** NuPIC\
**Tags:** windows, installation\
**Created:** [July 21, 2016, 5:59am UTC](https://discourse.numenta.org/t/how-to-get-nupic-running-on-windows/1076 "2016-07-21T05:59:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheiser1](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/sheiser1/32/766_2.png) [@sheiser1](https://discourse.numenta.org/u/sheiser1)\
**Post date:** [July 21, 2016, 5:59am UTC](https://discourse.numenta.org/t/how-to-get-nupic-running-on-windows/1076/1 "2016-07-21T05:59:52Z")

</div>

Hi All,

So I’m trying to get NuPIC running on Windows 10 and running into issues:

**1)** After running swarm\_description I get the following error when trying to run swarm:  
**ImportError: No module name DBUtils**  
I followed the MySQL install instructions as shown on the wiki:  
MySQL setup for NuPIC;

- Copy [https://github.com/numenta/nupic/blob/master/src/nupic/support/nupic-default.xml](https://github.com/numenta/nupic/blob/master/src/nupic/support/nupic-default.xml) to C:\Python27-x64\Lib\site-packages\nupic\support directory

- Rename this copied file to nupic-site.xml

- Use a text editor (e.g. notepad) to edit the nupic-site.xml file

- Update the field for nupic.cluster.database.passwd (and other nupic.cluster.database entries, if required)

For this last bullet here’s what I updated to:

!-- database credentials, used for swarming –

property  
name\>nupic.cluster.database.host  
value\>localhost  
description\>Name of the machine running the MySQL database server

property  
name\>nupic.cluster.database.user  
value\>root  
description\>Username for the MySQL database server

 name\>nupic.cluster.database.port value\>3306 description\>Port number for the MySQL database server 

property  
name\>nupic.cluster.database.passwd  
value\>Battousai29  
description\>Password for the MySQL database server

property  
name\>nupic.cluster.database.nameSuffix  
value\>${env.USER}  
description\>Suffix to place at the end of each database name.

**2)** When running the command prompt instructions (just about the MySQL instructions), the command:  
python -c "from nupic.bindings.math import Random; print Random().getUInt64();"  
gives an error: **no module name math**

**3)** After pip installing nupic I try ‘import nupic’ in python and it does work, but then if I try nupic.bindings I’m told that: **‘module’ has no attribute ‘bindings’**

I know there are pieces missing here, and if anyone has any instincts on what I might be doing wrong that’d be awesome!! Thanks,

– Sam

---

<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:** [July 21, 2016, 2:03pm UTC](https://discourse.numenta.org/t/how-to-get-nupic-running-on-windows/1076/2 "2016-07-21T14:03:06Z")

</div>

Judging from #2 and #3 above, NuPIC is not installed properly. Windows support is still experimental, and certainly hard to debug. You _might_ get some help by looking at our [Windows build file](https://github.com/numenta/nupic.core/blob/master/appveyor.yml), which contains computer instructions for setting up dependencies.

---

<div class="post-metadata">

**Author:** ![Austin\_Marshall](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/austin_marshall/32/1029_2.png) [@Austin\_Marshall](https://discourse.numenta.org/u/Austin_Marshall)\
**Post date:** [July 21, 2016, 4:16pm UTC](https://discourse.numenta.org/t/how-to-get-nupic-running-on-windows/1076/3 "2016-07-21T16:16:11Z")

</div>

As far as I can tell, you’re missing the [nupic.bindings](https://pypi.python.org/pypi/nupic.bindings) package, which is a separate package from [nupic](https://pypi.python.org/pypi/nupic), itself. You will need to install it, first.

[https://github.com/numenta/numenta-apps/tree/master/unicorn/scripts/Windows64](https://github.com/numenta/numenta-apps/tree/master/unicorn/scripts/Windows64) describes how we build HTM Studio for Windows, which is a bit of a process that includes bundling nupic, pip, and other dependencies with a standalone distribution of python before bundling it up into an installable application. Unfortunately, the Continuous Integration (CI) pipeline isn’t configured to build and publish the windows version so I can’t invite you to download and install the latest version, but you may be able to glean from the source of [https://github.com/numenta/numenta-apps/blob/master/unicorn/scripts/Windows64/build\_portable\_python\_with\_nupic.ps1](https://github.com/numenta/numenta-apps/blob/master/unicorn/scripts/Windows64/build_portable_python_with_nupic.ps1) what needs to be done.

---

<div class="post-metadata">

**Author:** ![Ivan.Minarik](https://avatars.discourse-cdn.com/v4/letter/i/2acd7d/32.png) [@Ivan.Minarik](https://discourse.numenta.org/u/Ivan.Minarik)\
**Post date:** [August 4, 2016, 8:07pm UTC](https://discourse.numenta.org/t/how-to-get-nupic-running-on-windows/1076/4 "2016-08-04T20:07:04Z")

</div>

Seems like Virtual box + Ubuntu is a more passable way…
