@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:
- Build 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
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
- Instal nupic.core
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 .
- Install nupic
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 .
- Build htmresearch-core
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
- Install htmresearch-core
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 .
- Install htmresearch
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