# Running community fork on Windows

**URL:** <https://discourse.numenta.org/t/running-community-fork-on-windows/5633>\
**Category:** NuPIC Community Fork\
**Created:** [March 14, 2019, 5:43am UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633 "2019-03-14T05:43:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 14, 2019, 5:43am UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/1 "2019-03-14T05:43:53Z")

</div>

Hii David, thank you for your informative answer, I hopefully try this version today. On your premission, I have some questions that not clear enough,

1. if I will run the same algorithm in the community version and in the official on the same data I will received the same result?
2. I see in the community version thier warning that not finish to transfer the code to python 3, but the python 2.7 are fully supported?  
I will inform you about my experience with that version 🙂  
Thanks ,  
M

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 14, 2019, 1:28pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/2 "2019-03-14T13:28:47Z")

</div>

> if I will run the same algorithm in the community version and in the official on the same data I will received the same result?

That is the intention. There have been changes to improve performance but the results should be the same. If you find you are getting different results please let us know. Some of the calling arguments or syntax may have changed slightly. Those changes should be recorded in API\_CHANGELOG.md .

> I see in the community version thier warning that not finish to transfer the code to python 3, but the python 2.7 are fully supported?

As code is being converted it is being moved from the nupic.py repository (which is a copy of the numenta’s nupic repository) into the nupic.py branch of the nupic.cpp repository. This is work in progress but we expect that python 2.7 should work. python 3.x should work on the code that has already been converted.

Oh, I just remembered, there is a problem with Python 2.7 running on Windows. There is no way that windows can load the python extension libraries built for python 2.7. This is a problem with MSVC compiler compatibility with the old python lib. Python 3.x should work.

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 14, 2019, 1:52pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/3 "2019-03-14T13:52:53Z")

</div>

Hii David,  
First , thanks for your answer.

> Oh, I just remembered, there is a problem with Python 2.7 running on Windows. There is no way that windows can load the python extension libraries built for python 2.7. This is a problem with MSVC compiler compatibility with the old python lib. Python 3.x should work.

So, I want to clearfy my understanding, I am can’t work with python 2.x on Windows OS, but Python 3.x is not full supported?, So if my OS is Windows, I can’t work with python on the NuPIC community version? (Or thier any work around)  
P.S: what is not supported in Python 3.x  
Thanks alot

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 14, 2019, 9:08pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/4 "2019-03-14T21:08:36Z")

</div>

The .py code in the nupic.py branch of the nupic.cpp repository should run with python3.

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 15, 2019, 10:15am UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/5 "2019-03-15T10:15:09Z")

</div>

Hii @David_Keeney i try to build the nupic.cpp project by clicking on the startupMSVC.bat  
I received an error in the end of the process

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/2X/f/f3b8086e77d71f684509ae284b8d940d237f8c66.png)  
In addition I attach my log error [here](https://files.fm/u/jufypdq5)  
May you have any idea how to solve the problem?  
THANKS

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 15, 2019, 4:46pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/6 "2019-03-15T16:46:39Z")

</div>

It looks like you don’t have GIT installed. That was a temporary requirement that should be fixed soon. We currently obtain yaml-cpp directly from the master branch of their repository. In the meantime please download and install git.

Thanks for your feedback.

---

<div class="post-metadata">

**Author:** ![dmac](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/dmac/32/5842_2.png) [@dmac](https://discourse.numenta.org/u/dmac)\
**Post date:** [March 15, 2019, 5:21pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/7 "2019-03-15T17:21:52Z")

</div>

All of the code in the master branch of the community-fork which supports python2 also supports python3.

Also, for the most part, we are not converting the python2 to py3, we are rewriting it in C++ and writting language bindings which allow python (either version) to use it. This is slow process and we have not yet reached feature parity with the original nupic. Most of the big & important parts are in a somewhat usable state, if not polished & ready for general release.

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 17, 2019, 12:43pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/8 "2019-03-17T12:43:04Z")

</div>

Hii thanks, I will check it.  
P.S: If I want to install the HTM community on air gap computer (computer without internet access) how I do it with this installation script?  
Thanks.  
MAK

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 17, 2019, 1:54pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/9 "2019-03-17T13:54:55Z")

</div>

Nupic.cpp downloads the prerequisites that it needs. However REAME.md describes how to manually download the packages. They can then be moved to your target machine with a thumb drive or whatever.

Note that the boost package is not needed on Windows.

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 17, 2019, 8:47pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/10 "2019-03-17T20:47:40Z")

</div>

Hii @David_Keeney, I try to install the community edition on air gap computer.  
I work according to the instruction in nupic.cpp-master\external\CMakeLists

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/2X/7/7860cee3919c7626a387fdab2b869f57e30fbf97.png)  
I copy the packages to nupic.cpp-master/build/ThirdParty/share/ folder and clicking on the startupMSVC.bat , and again I receive the error that GIT is not installed when trying to download the yaml packge (even in my air gap computer, that contains all the packages) ,  
May you have any suggestion how to solve the problem?  
Thanks for your help!  
MAK

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 17, 2019, 9:21pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/11 "2019-03-17T21:21:35Z")

</div>

Hii @dmac and @David_Keeney , where I can find the python package ?  
I finish to build the numpic\_core.sln , but where I can find the python installation package . so I can install and run (and compare) the community edition via python?  
Thanks,  
MAK

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 18, 2019, 12:07am UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/12 "2019-03-18T00:07:08Z")

</div>

Hmmm, that sounds like a bug. I am traveling until Wednesday so I cannot try to reproduce your problem right now. I do need to fix the YAML-cpp download. But there may be something else not working.

One thing you can try is to delete the build folder and start over. Sometimes the cache can keep wrong answers from earlier tries.

Oh and thanks for trying this out. It is a big help.

---

<div class="post-metadata">

**Author:** ![dmac](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/dmac/32/5842_2.png) [@dmac](https://discourse.numenta.org/u/dmac)\
**Post date:** [March 18, 2019, 1:58am UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/13 "2019-03-18T01:58:47Z")

</div>

> [@MAK](#):
>
> where I can find the python installation package . so I can install and run (and compare) the community edition via python?

From the root of htm-community/nupic.cpp repository, run this command to build & install the python version:  
`python setup.py install --user --force`

Or for python version 3:  
`python3 setup.py install --user --force`

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 18, 2019, 7:16am UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/14 "2019-03-18T07:16:20Z")

</div>

Thanks, I will check it today at home.  
P.S: during the building and installing process , it’s do something that need using with python ? , If the answer is yes, how I set the right python (I have on my OS python 2.7 and 3.x)…  
Thanks again…

---

<div class="post-metadata">

**Author:** ![dmac](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/dmac/32/5842_2.png) [@dmac](https://discourse.numenta.org/u/dmac)\
**Post date:** [March 18, 2019, 11:59am UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/15 "2019-03-18T11:59:47Z")

</div>

> [@MAK](#):
>
> how do I set the right python (I have on my OS python 2.7 and 3.x)…

You need to use the desired version python to install it, for example:  
`python27.exe setup.py install --user --force`  
Or  
`python34.exe setup.py install --user --force`

Both of these example commands should run the python setup script:

- Running the setup script with the python2 interpreter should install it for python 2.
- Running the setup script with the python3 interpreter should install it for python 3.

You can check if it installed correctly by opening the interactive python shell (of your desired version, 2 or 3), and trying to import the library: `import nupic.bindings`

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 22, 2019, 1:17pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/16 "2019-03-22T13:17:55Z")

</div>

I have updated the software that downloads the dependencies. Please fetch the latest nupic.cpp master repository.

- Git is no longer needed for Yaml-cpp download.
- The manual override for air-gap computers now works.
- Note that the README.md has changed. There is a table of packages to be downloaded for manual override. The URL’s and the resulting file names have changed so if you were using this before you will need to do this again.

Please let us know if you have problems with this.

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 25, 2019, 12:00pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/17 "2019-03-25T12:00:03Z")

</div>

Hii @David_Keeney ,  
I only now check the new master-release .  
We still encounter in error during the installation process on air gap computer.

> Performing download step \<download, verify and extract\> for ‘mist-download’  
> Downloading…  
> dst='/nupic.cpp-master/build/ThirdParty/mnist\_data/mnist-download/mnist-download-prefix/src/master.zip  
> using src=[https://github.com/wichtounet/mnist/archive/master.zip](https://github.com/wichtounet/mnist/archive/master.zip)

try to download 5 time, and than return error.

Thanks,  
MAK

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 25, 2019, 1:18pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/18 "2019-03-25T13:18:08Z")

</div>

@MAK hmmm, this seems odd.

> Performing download step \<download, verify and extract\> for ‘mist-download’  
> Downloading…  
> dst=’/nupic.cpp-master/build/ThirdParty/mnist\_data/mnist-download/mnist-download-prefix/src/master.zip  
> using src=[https://github.com/wichtounet/mnist/archive/master.zip](https://github.com/wichtounet/mnist/archive/master.zip)

This is normal output telling you that it is doing the download… Is there an error after that?

When you downloaded the new master repository did you put it in a clean repository folder?  
And, if you do need to start over, be sure to delete the build folder that gets created in the repository. CMake caches stuff in build\ThirdParty and in build\script and will keep the settings from the previous builds so you need to delete the build folder if the build did not complete successfully. Then restart by double clicking startupMSVC.bat. When the script stops you can press enter and Visual Studio should start.

---

<div class="post-metadata">

**Author:** ![David\_Keeney](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/david_keeney/32/1616_2.png) [@David\_Keeney](https://discourse.numenta.org/u/David_Keeney)\
**Post date:** [March 25, 2019, 1:23pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/19 "2019-03-25T13:23:03Z")

</div>

Oh, I see what you mean…it is still trying to do the download on an air-gap computer. This could still be the CMake cache hanging on to the old configuration. Clearing the cache should fix that. Let me know if it does not.

---

<div class="post-metadata">

**Author:** ![MAK](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@MAK](https://discourse.numenta.org/u/MAK)\
**Post date:** [March 25, 2019, 1:29pm UTC](https://discourse.numenta.org/t/running-community-fork-on-windows/5633/20 "2019-03-25T13:29:30Z")

</div>

Hii @David_Keeney ,  
I am working with air gap computer without connection to the internet.  
The installation work fine (install all the external lib) until the error I mention above  
SO , I received error .

> CUSTOMBUILD: error: downloading [https://github.com/wichtounet/mnist/archive/master.zip](https://github.com/wichtounet/mnist/archive/master.zip) failed  
> status code: 6  
> status\_string: “Couldn’t resolve host name”  
> log:  
> –LOG BEGIN—  
> timeout on name lookup is not supported  
> getaddrinfo\<3\> failed for [github.com:443](http://github.com:443)  
> Couldn’t resolve host ‘[github.com](http://github.com)’  
> Closing connection 0

Thanks,

[Next page](https://discourse.numenta.org/t/running-community-fork-on-windows/5633.md?page=2)
