Skip to content

Instantly share code, notes, and snippets.

@rhyolight
Last active August 21, 2016 17:02
Show Gist options
  • Save rhyolight/15b8454780424f690d00 to your computer and use it in GitHub Desktop.
Save rhyolight/15b8454780424f690d00 to your computer and use it in GitHub Desktop.
sudo apt-get update -y
sudo apt-get install git g++ cmake python-dev -y
git clone https://github.com/numenta/nupic.core.git
git clone https://github.com/numenta/nupic.git
export NUPIC=$HOME/nupic
export NUPIC_CORE=$HOME/nupic.core
curl https://bootstrap.pypa.io/get-pip.py | sudo python
cd $NUPIC_CORE
pip install -r bindings/py/requirements.txt --user
pip install pycapnp==0.5.8 --user
mkdir -p $NUPIC_CORE/build/scripts
cd $NUPIC_CORE/build/scripts
cmake $NUPIC_CORE -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=$NUPIC_CORE/bindings/py/nupic/bindings
make -j3
make install
cd $NUPIC_CORE/build/release/bin
./cpp_region_test
./unit_tests
cd $NUPIC_CORE
python setup.py install --user
cd $NUPIC
python setup.py install --user
export PATH=~/.local/bin:$PATH
python $NUPIC/scripts/run_nupic_tests.py -u
@rhyolight
Copy link
Author

Updated, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment