# Where is the sensorimotor code?

**URL:** <https://discourse.numenta.org/t/where-is-the-sensorimotor-code/2210>\
**Category:** Engineering\
**Created:** [April 12, 2017, 12:48am UTC](https://discourse.numenta.org/t/where-is-the-sensorimotor-code/2210 "2017-04-12T00:48:37Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![lscheinkman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/lscheinkman/32/1904_2.png) [@lscheinkman](https://discourse.numenta.org/u/lscheinkman)\
**Post date:** [July 17, 2017, 8:10pm UTC](https://discourse.numenta.org/t/where-is-the-sensorimotor-code/2210/24 "2017-07-17T20:10:11Z")

</div>

@thanh-binh.to, @mccall.ryan We are currently working on making htmresearch easier to install, similar to nupic where you would be able to simply pip install htmresearch, but for now you can try the steps we use internally to build and install htmresearch on our dev laptops:

1. Build nupic.core

```auto
pip install --user numpy==1.12.1 pytest==3.0.7 pytest-cov==2.5.0 pytest-xdist==1.16.0 pycapnp==0.5.12
mkdir -p ~/nta/nupic.core/build/scripts_release
cd ~/nta/nupic.core/build/scripts_release
cmake ../.. -DCMAKE_INSTALL_PREFIX=../release -DCMAKE_BUILD_TYPE=Release -DNUPIC_IWYU=OFF -DNUPIC_TOGGLE_INSTALL=ON -DPY_EXTENSIONS_DIR=~/nta/nupic.core/bindings/py/src/nupic/bindings
make -j6
make install

```

1. Instal nupic.core

```auto
cd ~/nta/nupic.core
pip install --user numpy==1.12.1 pytest==3.0.7 pytest-cov==2.5.0 pytest-xdist==1.16.0 pycapnp==0.5.12
ARCHFLAGS=-arch x86_64 pip install --user -e .

```

1. Install nupic

```auto
cd ~/nta/nupic
pip install --user asteval==0.9.1 coverage==3.7.1 mock==1.0.1 ordereddict==1.1 psutil==1.0.1 pytest==3.0.7 pytest-cov==2.5.0 pytest-xdist==1.16.0 python-dateutil==2.1 PyYAML==3.10 unittest2==0.5.1 validictory==0.9.1 PyMySQL==0.6.2 DBUtils==1.1 pyproj==1.9.3 prettytable==0.7.2 numpy==1.12.1
ARCHFLAGS=-arch x86_64 pip install --user -e .

```

1. Build htmresearch-core

```auto
mkdir -p ~/nta/htmresearch-core/build/scripts_release
cd ~/nta/htmresearch-core/build/scripts_release
cmake ../.. -DCMAKE_INSTALL_PREFIX=../release -DCMAKE_BUILD_TYPE=Release -DNUPIC_IWYU=OFF -DLOCAL_NUPIC_CORE_INSTALL_DIR=~/nta/nupic.core/build/release -DPY_EXTENSIONS_DIR=~/nta/htmresearch-core/bindings/py/src/htmresearch_core
make -j6
make install

```

1. Install htmresearch-core

```auto
cd ~/nta/htmresearch
pip install --user numpy==1.12.1 pytest==3.0.7 pytest-cov==2.5.0 pytest-xdist==1.16.0 pycapnp==0.5.12
ARCHFLAGS=-arch x86_64 pip install --user -e .

```

1. Install htmresearch

```auto
cd ~/nta/htmresearch-core
pip install --user matplotlib pandas plotly>=1.12.10 simplejson tabulate tqdm prettytable plyfile scikit-learn
ARCHFLAGS=-arch x86_64 pip install --user -e .

```

Let me know if it works for you

---

_[View the full topic](https://discourse.numenta.org/t/where-is-the-sensorimotor-code/2210)._
